brew install mysql

2018-01-04  本文已影响27人  panw3i
We've installed your MySQL database without a root password. To secure it run:
    mysql_secure_installation

MySQL is configured to only allow connections from localhost by default

To connect run:
    mysql -uroot

To have launchd start mysql now and restart at login:
  brew services start mysql
Or, if you don't want/need a background service you can just run:
  mysql.server start

开机自启动 brew services start mysql
不需要后台服务 mysql.server start

brew services start mysql (启动)

brew services stop mysql (停止)
上一篇 下一篇

猜你喜欢

热点阅读