realbasic-betas.mbox
[Top] [All Lists]

Re: REALbasic and MySQL-database

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: REALbasic and MySQL-database
From: Stéphane Pinel <s dot pinel at equinoxpartners dot fr>
Date: Mon, 29 Jul 2002 13:55:35 +0200
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



<Prev in Thread] Current Thread [Next in Thread>