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