Osx:Percona安装

来自WHY42
imported>Soleverlee2017年5月11日 (四) 06:43的版本 (以“<source lang="bash"> brew install percona-server </source> 安装完会有提示: <pre> A "/etc/my.cnf" from another install may interfere with a Homebrew-built se...”为内容创建页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
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