Unable to connect to mySQl database using PDO on STOLI server

Status
Not open for further replies.

pabella

New Member
Messages
22
Reaction score
0
Points
1
I have a script to query a mySQL database using PHP + PDO.
Since a while, the connection gives a strange error. I have changed NOTHING on the database, usernames, scripts or variables, but it is impossible to acces it. (It loocks as all my code is getting useless)
The error I get when I try to do a $DB-connect(); is the following one
"Error connecting database: Connection::connect(): SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)"

If someone can give me a hand to solve my problem, I will be very thankfull.
Thanks in advance,
Pedro.-
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
There are some issues with MySQL on stoli at the moment. Admin are aware of this. Please be patient while it's fixed....:)
 

pabella

New Member
Messages
22
Reaction score
0
Points
1
Thanks for the fast answer.
Did you have any idea of how long will it take to solve the problem?
Is there any way to access the mySQL databases using any other code (ODBC, mySQl direct, etc) that can be used during this period?
 
Status
Not open for further replies.
Top