Mysql in windows
Posted: Sat Jan 19, 2008 11:28 pm
Sorry for starting so many threads, im really enjoying this language
Sofar, ive gotten my program to start the mysql server (and shut it down on close). However, i cannot get a connection to work. This is my current code:
debug returns this:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Sofar, ive gotten my program to start the mysql server (and shut it down on close). However, i cannot get a connection to work. This is my current code:
Code: Select all
Global mysqlid = RunProgram(configvalue$(0)+"mysqld-nt.exe") ; mysql path
StickyWindow(0,1)
SetGadgetText(#Text_1,"booting mysql....ok")
Delay(1000)
SetGadgetText(#Text_1,"Connecting to database")
InitDatabase()
dbresult = OpenDatabase(1,"test","root","root")
Debug(dbresult)
Debug(DatabaseError())
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified