wishbone Posted May 24, 2013 Share Posted May 24, 2013 My site was running fine, until I tried to get some mysql queries running inside a template (via include). I got internal server error, and also a DB connect 2002 one. I put on debug mode which gave me errors already on normal files (without mysql query). After that, site is down, I can#t even log in into the backend. I only get: "Unable to complete this request due to an error. Error has been logged." The error log says: "Error: Exception: DB connect error 2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (in /mnt/web6/d3/52/51421252/htdocs/wire/core/ProcessWire.php line 96)" no clue where to search... Link to comment Share on other sites More sharing options...
sakkoulas Posted May 24, 2013 Share Posted May 24, 2013 hi wishbone i don't know if this helps you but the same error is described here http://processwire.com/talk/topic/2765-problem-with-command-line-scripts/?hl=%2Bexception%3A+%2Bconnect+%2Berror+%2B2002 1 Link to comment Share on other sites More sharing options...
wishbone Posted May 24, 2013 Author Share Posted May 24, 2013 thank you, but it's not a local install... Link to comment Share on other sites More sharing options...
sakkoulas Posted May 24, 2013 Share Posted May 24, 2013 sorry! maybe some other member can help you like soma or diogo 1 Link to comment Share on other sites More sharing options...
wishbone Posted May 24, 2013 Author Share Posted May 24, 2013 it's a running site... I'm desperate... Link to comment Share on other sites More sharing options...
Soma Posted May 24, 2013 Share Posted May 24, 2013 Looks like it can't connect to the db anymore. What sql did you run? This doesnt look like PW is the root of the problem. Have restarted apache and mysql server? 1 Link to comment Share on other sites More sharing options...
wishbone Posted May 24, 2013 Author Share Posted May 24, 2013 it is not local - how can I restart anything on provider side? mysql says 5.5.27, client Api 5.0.91. php 5.2.17 It was caused by PW as described... Link to comment Share on other sites More sharing options...
wishbone Posted May 25, 2013 Author Share Posted May 25, 2013 is it a good idea to copy original files to the wire directory? I really don't know where the mistake could be Link to comment Share on other sites More sharing options...
wishbone Posted May 25, 2013 Author Share Posted May 25, 2013 got it! after sleeping, solutions often appear... everybody was talking about local installs with that error, so I controlled the DBHost. had the config.php overwritten with the local copy, when I put on the debug mode... Where can I mark the thread as solved? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now