|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Can't connect to local MySQL server through socket '/tmp/mysql.sock'
Hello, my mysql suddonly stopped working. It was compltely random.
mySQL error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) mySQL error code: I get that error. I tried to copy it into tmp folder from /var/db/mysql/ but it says it exists... but it does not. cp1# cp -rf /var/db/mysql/mysql.sock ../../tmp/ cp: symlink: /tmp/mysql.sock: File exists Please help. thx. If all else fail what would be the best way to copy the databases reinstall mysql and put the databases back? |
|
||||
|
cd /tmp
rm -rf mysql.sock ln -s /var/lib/mysql/mysql.sock mysql.sock that will do.
__________________
linux-image AIM: "tux image" Msn: "tux_image@hotmail.com" Yahoo: "masternikx" http://admin-ahead.com Open Tickets: https://www.ticketforge.com FAQ's: http://scriptmantra.info/ Tips: http://tips.admin-ahead.com |
|
|||
|
That doesn't work :\
cp1# mysql ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (62) Btw I am on freebsd 4.8 with mysql (4.0.10-gamma) Maybe I can just uninstall mysql and make cpanel reinstall it with a cpanel update? How would i uninstall cpanel without deleting/remove the current databases. thx. Last edited by gopederick; 07-02-2004 at 03:45 AM. |
|
||||
|
freebsd
am not sure the..also you can try a restart for the mysql that will create the socket the natural way.
__________________
linux-image AIM: "tux image" Msn: "tux_image@hotmail.com" Yahoo: "masternikx" http://admin-ahead.com Open Tickets: https://www.ticketforge.com FAQ's: http://scriptmantra.info/ Tips: http://tips.admin-ahead.com |
|
|||
|
Try this:
/usr/local/bin/mysqld &
__________________
ProficientHost http://www.proficienthost.com Delivering Quality Hosting & Design Services |
![]() |
| Thread Tools | |
| Display Modes | |
|
|