Le 29/07/02 12:50, « Luc Bressinck » <bressinck dot luc at PI dot BE> a écrit :
> 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
>
>
Using RB 4.5 :
Dim db As MySQLDatabase
db = New MySQLDatabase
db.Host = "localhost"
db.DatabaseName = "mydb"
db .Username = "theUser"
db .Password = "thePass"
If db.Connect Then
msgBox "OK"
.....
.....
Else
msgBox db.ErrorMessage
End if
--
Stéphane Pinel
Equinox Partners France
Information System
|