mac start mysql ways

1. Start mysql service

sudo mysql.server start

2. Stop the mysql service

sudo mysql.server stop

3. Restart the mysql service

sudo mysql.server restart

4. When starting the service back to the problems encountered:

<1> One problem:
  Starting MySQL
.Logging to '/usr/local/var/mysql/MacBook-Pro1.local.err'.
 ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook-Pro1.local.pid).
<1> of the solution to:
 这种错误有很多的可能,但是我问题比较奇葩   我在mac终端 执行时,去掉sudo 就可以解决成功。
Published 25 original articles · won praise 0 · Views 435

Guess you like

Origin blog.csdn.net/m0_38028438/article/details/104481921