I included this line in the program, to see what happens next.
Code: Select all
if( mysql_real_connect( db, NULL, NULL, NULL, NULL, MYSQL_PORT, NULL, 0 ) = 0 ) then
print "Can't connect to the mysql server on port"; MYSQL_PORT
mysql_close( db )
end 1
end if
And I get this-
Can't connect to the mysql server on port 3306
I went ahead and did 'mysql -uroot -p' to log into mysql, plus enter my password, I was still getting a "Can't connect ...".
When I mentioned some tutorials, in the previous post, I was thinking along the lines of freeBasic based. Plus, now I am not sure as to what is contained within mysql\mysql.bi. Does it contain all of the mysql commands and other things, or is it just somebodies code snippet for a limited use of mysql. Is this leading me down the path of, if you want to really use freeBasic mysql, you have to create your functional mysql.bi.