Hi everyone,

I'm running Kubuntu 9.04 (Jaunty) on an Intel P4 3GHz (i386) with 1GB  
of RAM. I have tried the packaged Gambas2, and have also compiled the  
latest from source following the instructions on the website.

I am getting the following error:

Cannot find driver for database: MySQL.

However most of my MySQL connection details have come straight from  
the example:

MODMain.module
' Gambas module file
PUBLIC $conn AS NEW Connection
PUBLIC PROCEDURE Connect()
   $conn.Close()              ' Close the connection
   $conn.Type = "MySQL"       ' Type of connection
   $conn.Host = "localhost"   ' Name of the server
   $conn.Login = "root"       ' User's name for the connection
   $conn.Port = "3306"        ' Port to use in the connection, usually 3306
   $conn.Name = "menagerie"      ' Name of the data base we want to use
   $conn.Password = "password" ' User's password
   $conn.Open()               ' Open the connection
END

PUBLIC SUB Main()
    ' Run the Procedure to connect
   FMain.Visible = TRUE ' The main form of your program
END




FMain.class
' Gambas class file


PUBLIC SUB Button1_Click()
DIM $resProducts AS Result
ModMain.Connect()

   $resProducts = ModMain.$conn.Exec("SELECT * FROM products WHERE  
active ='1'")
   Button2.Text = ($resProducts!shortname)
END


I have loaded the gb.db extension.

Any help would be greatly appreciated.

Thanks

Adam

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to