Mac mysql 安装

使用homebrew安装mysql

前提:brew

1.  brew install mysql.

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


2.mysql_secure_installation  根据提示,然后确定是否安装密码检测插件?然后输入root 密码。


3.链接mysql ,笔者使用:sequel Pro  ,本地  host:127.0.0.1,端口:3306


你可能感兴趣的:(Mac mysql 安装)