TMySQLServer::SelectDataBase error

Hi, Everyone,

I am using ROOT to access a mysql database. The compiled program has been failing to connect to the database recently. What really puzzles me and the database administrator is that a perl script the uses the same information can access the database. What’s more puzzling is that the same binary was functioning correctly a few days ago, but it is failing in the last few days. Does anyone have some suggestion for me to try ? :frowning: Thanks.


PS: The error message is

Error in TMySQLServer::SelectDataBase: not connected

Is this the only error message you get? Is there an error just after creating the connection? What does GetPort() return just after the Connect()?

Cheers, Fons.

Hi, Fons,

Thanks for the suggestion. I will try to add a GetPort call after Connect call shortly. As is, the program does not try to call GetPort after connect…