imported>Soleverlee 以“<source lang="bash"> brew install percona-server </source> 安装完会有提示: <pre> A "/etc/my.cnf" from another install may interfere with a Homebrew-built se...”为内容创建页面 |
imported>Soleverlee 无编辑摘要 |
||
| 第20行: | 第20行: | ||
mysql.server start | mysql.server start | ||
</pre> | </pre> | ||
一定要按照提示执行一下: | |||
<source lang="bash"> | |||
mysqld --initialize --datadir=/usr/local/var/mysql --user=hfli | |||
mysql.server start | |||
</source> | |||
很可惜不知道安装完的默认密码是多少,日志也没有找到,所以只能去改一下密码了,参考[[MySQL:忘记root密码]] | |||
[[Category:Linux/Unix]] | [[Category:Linux/Unix]] | ||
2017年5月11日 (四) 07:24的最新版本
brew install percona-server
安装完会有提示:
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.
MySQL is configured to only allow connections from localhost by default
To connect:
mysql -uroot
To initialize the data directory:
mysqld --initialize --datadir=/usr/local/var/mysql --user=hfli
To have launchd start percona-server now and restart at login:
brew services start percona-server
Or, if you don't want/need a background service you can just run:
mysql.server start
一定要按照提示执行一下:
mysqld --initialize --datadir=/usr/local/var/mysql --user=hfli
mysql.server start
很可惜不知道安装完的默认密码是多少,日志也没有找到,所以只能去改一下密码了,参考MySQL:忘记root密码