MacPro Mysql 安装过程

作者: zcwfeng | 来源:发表于2018-03-19 18:55 被阅读2次

➜ python git:(master) ✗ brew install mysql

==> Downloading https://homebrew.bintray.com/bottles/mysql-5.7.21.high_sierra.bo
######################################################################## 100.0%
==> Pouring mysql-5.7.21.high_sierra.bottle.tar.gz
==> /usr/local/Cellar/mysql/5.7.21/bin/mysqld --initialize-insecure --user=zcw -
==> Caveats
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

mysql -uroot 报错,因为没启动server

  Securing the MySQL server deployment.

Enter password for user root:
Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

mysql.server start

➜  python git:(master) ✗ mysql.server start
Starting MySQL
. SUCCESS!

设置密码回答问题

python git:(master) ✗ mysql_secure_installation

Securing the MySQL server deployment.

Connecting to MySQL using a blank password.

VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?

Press y|Y for Yes, any other key for No:

然后后一点点填写就好了

相关文章

  • MacPro Mysql 安装过程

    ➜ python git:(master) ✗ brew install mysql mysql -uroot ...

  • Mac下MySQL安装

    今天在电脑macPro上面安装了Mysql5.7.17,以下是安装步骤,还有一些错误解决方法 系统版本:mac O...

  • poco编译支持mysql

    1、mysql安装 具体安装过程可参考:centos7安装mysql过程.md[https://github.co...

  • Ubuntu 14.04安装Mysql5.6

    安装Mysql前先安装Mysql需要的依赖: 然后安装Mysql: 安装过程会要求输入root密码。 启动: 停止...

  • 关于Mac六国语言无限重启

    今天系统自动弹出了是否安装macOS High Sierra。因为昨天刚刚在MacPro上升级完成,过程很顺利,所...

  • ubuntu LTS下搭建MySQL服务

    安装MySQL 安装MySQL过程中会要求输入MySQL的root用户的密码,安装完成后执行mysql --ver...

  • ubuntu mysql远程连接

    首先安装Mysql mysql安装过程中会提示你输入root帐户密码.mysql安装完成后,登陆mysql,我们以...

  • mysql配置版安装

    安装环境 MySQL 版本:MySQL 5.7 配置过程 下载 MySQL Community Server 下载...

  • centos7下安装mysql5.7和jdk 1.8

    安装mysql5.7 具体安装过程可参见官网: A Quick Guide to Using the MySQL ...

  • MySQL笔记

    熟悉MySQL基本命令 Ubutnu下安装MySQL 先更新一下源,修复依赖关系: 安装MySQL: 安装过程中,...

网友评论

    本文标题:MacPro Mysql 安装过程

    本文链接:https://www.haomeiwen.com/subject/xvnpqftx.html