Code: Select all
UseMySQLDatabase()
OpenConsole()
db_openconnection.s = "=host=192.168.0.5 port=3306 dbname=dbo"
db_user.s = "user"
db_password.s ="password"
handle = OpenDatabase(#PB_Any,db_openconnection,db_user,db_password)
PrintN("Handle = "+Str(handle))
CloseDatabase(handle)
Delay(1000)
CloseConsole()
Is there some compiler option I've missed or some other reason why this is the case?