Posts Tagged ‘MYSQL Fails to start (mysql.sock error)’
If mysql fails to start and gives mysql.sock error
Try this to fix the error.
===================
cd /var/lib/mysql
===================
touch mysql.sock
===================
chown mysql:mysql mysql.sock
===================
chmod 1777 mysql.sock
===================
now make a sym link into /tmp
ln -s /var/lib/mysql/mysql.sock /tmp
===================
then
chmod 1777 /tmp
===================
now
/scripts/mysqlup –force
===================
now just restart mysql
/etc/rc.d/init.d/mysql restart
===================
This will fix the sock error and mysql will be running fine now.