MySQL in FB?

New to FreeBASIC? Post your questions here.
Post Reply
N3trunn3r
Posts: 110
Joined: Feb 14, 2008 15:48

MySQL in FB?

Post by N3trunn3r »

Is there a tutorial / piece of code that shows how to access/write/read a SQL database on the web?
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: MySQL in FB?

Post by TJF »

What about
  • .../freebasic/examples/libraries/DB/mysql_test.bas
Set parameters in mysql_real_connect() to connect to your server.
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: MySQL in FB?

Post by badidea »

Yes, I tested that example once and it worked with a local myqsl server.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: MySQL in FB?

Post by TJF »

badidea wrote:Yes, I tested that example once and it worked with a local myqsl server.
It also should work with a MySql netserver. You have to set parameters for host, username and password. What error message do you get if the connection fails?
Post Reply