Link to home
Start Free TrialLog in
Avatar of g00r00
g00r00

asked on

ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)

When i am trying to connect to mysql server I got error message:

ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)


what can I do to fix it..


Thank you very much.

I need it a soon as possible.
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

Are U trying to connect to MySQL thru phpMyAdmin?
What happens if U remove this socket thing?
Avatar of g00r00
g00r00

ASKER

No, I am not using phpMyAdmin

OK.
I suggest you nstall phpMyAdmin (PMA) and launch it.

1 - phpMyadmin resides at http://www.phpmyadmin.net
Go there and wonload the latest stable version (2.6.2.pl1).
2 - install PMA files as indicated. To summarize: they are php files which you place in ad hoc directories.
3 - You'll need to edit "config.php" to tune it with your host, dabatabse name, etc.
4 - You can the access to PMA thru your web browser. (Some trial and error will be needed for config.php)

Another "fastroute" might be to install EasyPHP, look at www.easyphp.org
It will replace/ install Appache, PHP, MySQL and phpmyadmin each fitted tyo alll others
Avatar of g00r00

ASKER

Cant connect to mysql trhu PMA as well
what is PMA's error message?
Depending on the text, the solution might be very close...
ASKER CERTIFIED SOLUTION
Avatar of idmisk
idmisk
Flag of Austria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial