Restarting mysql - FreeBSD

PCTech

Verified User
Joined
Nov 27, 2005
Messages
104
Location
USA
I'm still having problems with mysql. I try to shutdown mysql so I can restart it - I get this:
tsunami# mysqladmin -u root -p shutdown
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

The file mysql.sock isn't in the /tmp folder. I did a locate mysql.sock and it doesn't show. My /tmp folder has alot of files in it that look suspicious:

sess_14ac92fba650b3ec357755dd28084b0f sess_aec8c1cb8ab27bb9094e0c24957b7380
sess_1e5ce1fdb1553a2bb203150e1cad01af sess_bf02fd500bb32054bf468462b1f008d7
sess_2831629392132840fdf7ebdba5914987 sess_cc70f4f925a7f97bd4c34ec4aedab299
sess_2fda28a9ac0d5e63c90c022c6a9643f0 sess_d6f0be3d40558dc368637db15a916b67
sess_32a8ac7e1f2e684347b90a27a8ec6fb9 sess_e9dbc08967353f91dcb7b9b6e024cabb
sess_3350a5d6332df1619168cdd66a951e4b sess_f1b37b007c688e859539e159856f988e
sess_51037066c9fcd455df76c9ca28b243a3 sess_f46fa163b0c66ed782447f3ee8e68afc

Any ideas or suggestions? And as a last resort I may need to siimply reinstall mysql.
 
Go through the boot scripts, that's what they're there for.

Something like: /usr/local/etc/rc.d/mysqld restart
 
Back
Top