Accessing the MySQL Database Engine from PB for Linux

Linux specific forum
CoderLaureate
User
User
Posts: 50
Joined: Fri Apr 25, 2003 7:21 pm
Location: The World is my country, all mankind are my brethren, and to do good is my religion.
Contact:

Accessing the MySQL Database Engine from PB for Linux

Post by CoderLaureate »

Does anybody know if PB for Linux can access the MySQL Database engine? If so, how can I go about doing this? If NOT, how can I go about doing this?

-Jim
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Yes it can. You have to install the ODBC package for linux and then configure it as you do on Windows.
CoderLaureate
User
User
Posts: 50
Joined: Fri Apr 25, 2003 7:21 pm
Location: The World is my country, all mankind are my brethren, and to do good is my religion.
Contact:

Post by CoderLaureate »

Fantastic!

I totally forgot to install MyODBC.
Thanks Fred!!!

-Jim
CoderLaureate
User
User
Posts: 50
Joined: Fri Apr 25, 2003 7:21 pm
Location: The World is my country, all mankind are my brethren, and to do good is my religion.
Contact:

Database access still not working.

Post by CoderLaureate »

When I try to use the InitDatabase() function I get the following error while compiling...

Code: Select all

******************************************
PureBasic Linux x86 v3.50
******************************************

Loading external modules...
Starting compilation...

Line 11: InitDatabase() is not a function, an array, or a linked list
Since I can't even get this far, I'm thinking that none of the other database functions are working either?

Will they be available in the next Linux version of PB?


-Jim
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Strange, I tested this one without problems. I will take a look. About the new version, it will be released at the same time than the Windows version and will support 2D drawing for screen/sprites the 3D engine (full) and more..
CoderLaureate
User
User
Posts: 50
Joined: Fri Apr 25, 2003 7:21 pm
Location: The World is my country, all mankind are my brethren, and to do good is my religion.
Contact:

Post by CoderLaureate »

Thanks Fred!
You da man!
RSommer
New User
New User
Posts: 1
Joined: Tue Dec 02, 2003 12:17 pm

Post by RSommer »

I got the same error message and don't really know which ODBC-Package I have to install. I'm using Debian Woody and installed "libmyodbc" and "unixodbc". I don't know what to do. Any suggestions?
Post Reply