Jump to content

Error 2002 MySQL


ilovepizza
 Share

Recommended Posts

Hey Guys,

im quite new in working with CMS. for an project im working on i want to set up an cms.

i uploaded and installed processwire onto my ftp. during that there was the "error 2002".

the full text was 

"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock'"

i found out that i have to edit my local sql files.......there are a lot of instructions out there in the www.

i have to edit some socket-paths and stuff. and i doesn't work ffs.

can anyone help? Im desperate :wacko:

Link to comment
Share on other sites

  • 10 months later...

Hey,

It might be a bit late, but I just had the same problem after migrating site to a new server.

The trick was to use 127.0.0.1 instead of localhost in file: site/config.php line 44: $config->dbHost = 'localhost'; 

The solution is stated here.

Best regards,

Žiga

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

×
×
  • Create New...