| To: | REALbasic Betas <realbasic-betas at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: REALbasic and MySQL-database |
| From: | Paul Harvey <realbasic at hiddenfield dot com> |
| Date: | Mon, 29 Jul 2002 13:55:54 +0000 |
|
On Monday, July 29, 2002, at 10:50 , Luc Bressinck wrote: Hello, I have the plugin MySQL Plugin version 1.0.3. I want to connect to an mysql-database (in OS X, I have Mysql installed) but there is no OPEN function for mysql (there is one e.g. For OpenBase: OpenOpenBaseDatabase). How do I open the database? Luc Bressinck You could try starting with something like this: // connect to MySql database dim db as mySQLDatabase dim dbCursor as DatabaseCursor dim sqlstring as string db=new mySQLDatabase db.Host="address of database server" // localhost for own computer db.DatabaseName="database name" db.UserName="user name" db.Password="password" if db.Connect then sqlstring="select * from myTable" dbCursor=db.SQLSelect(sqlstring) dbCursor.MoveFirst while not dbCursor.EOF msgBox dbCursor.Field("fieldname").stringValue dbCursor.MoveNext wend end |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: REALbasic and MySQL-database, Jerry Hamlet |
|---|---|
| Next by Date: | Re: 'LoadSaveJPEG' or 'Micono RbJPEGLib' & rb45, Joseph Nastasi |
| Previous by Thread: | Re: REALbasic and MySQL-database, Jerry Hamlet |
| Next by Thread: | Failure Assertion Exception, Lo Saeteurn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |