I have re-installed mysql in Linux. After the installation, I cannot start it. The prompt can #39; tconnecttolocalmysqlserverthroughsocket #39; v appears.
I have re-installed mysql in Linux. After the installation, I cannot start it. The prompt can #39; t connect to local mysql server through socket #39; v appears.
I have re-installed mysql in Linux. After the installation, I cannot start it. The prompt "can't connect to local mysql server through socket" var lib mysql "appears. sock's 2 error. I found it online and found a number of solutions. I can try it later. After the operation, the couldn't find manager or server error occurs again. Continue to google and read a solution, so I tried it. It's still true.
Write down:
[Root @ server ~] #/Etc/init. d/mysql start
Starting MySQL... Couldn't find MySQL manager or server
Or this error may display in WHM:
Can't connect to local mysql through socket/var/lib/mysql. sock
Apparently some RPM packages install this file with an incorrect path in the my. cnf file by default, leaving the service unable to start on its own. to fix, simply open/etc/my. cnf in vi and comment out the 'basedir =/var/lib 'line like so:
# Basedir =/var/lib
Save the file, and restart MySQL (/etc/init. d/mysql restart ).