Jump to content

DB connect error 2002


wishbone
 Share

Recommended Posts

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

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?

  • Like 1
Link to comment
Share on other sites

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?

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...