Osx:Percona安装
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密码