当前位置:网站首页>Can not connect to local MySQL server through socket ‘/tmp/mysql. sock (2)‘

Can not connect to local MySQL server through socket ‘/tmp/mysql. sock (2)‘

2022-06-11 08:38:00 R.Jamin Cheng

@[TOC]( About Can not connect to local MySQL server through socket '/tmp/mysql.sock (2)' The solution )

ERROR! The server quit without updating PID file(usr/local/mysql/data/rdp01.pid)

When starting the service , There have been such errors . Later, I copied this file to this path , It can be started , But it seems that the startup was unsuccessful , After various searches and attempts , Can not be resolved after the choice of reboot.
After reboot , I went straight to /usr/local/mysql/bin/ Start directly under the directory ./mysql start . After successful startup , open MySQL The times is wrong ,Can not connect to local MySQL server through socket '/tmp/mysql.sock (2)
I have tried many times , Also modified various ways , Finally, I saw that it might be a permission problem , I'll just give it to /tmp/ Increased permissions chmod 777 /tmp, I don't know whether it is right . Try starting again , Found that the startup was successful . But there is still a mistake , I don't know whether it has any impact
MySQL-success

原网站

版权声明
本文为[R.Jamin Cheng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020508455945.html