Solve MySQL startup question: Can't connect to local mysql server through socket 'tmpmysql.sock'

xiaoxiao2021-03-06  55

1, becoming a root user

2, cd / usr / local / mysql / var

3. Change all the files and directories in the var directory to mysql users

Chown -r mysql.

4. Change all the files and directories in the var directory to mysql group

CHGRP -R mysql.

5, start the MySQLD process

/ usr / local / mysql / libexec / mysqld

6, ok!

7, test:

/ usr / local / mysql / bin / mysqlshow

转载请注明原文地址:https://www.9cbs.com/read-114684.html

New Post(0)