homebrew下安装mysql_Mac下homebrew安装Mysql以及配置问题

本文为博主原创,若转载请注名出处。在Mac上安装homebrew(官网安装教程)homebrew依赖:Command Line Tools (CLT) for Xcode或者Xcode这两者 的安装就不细说了在准备好以上工具后在terminal输入:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebre...
摘要由CSDN通过智能技术生成

本文为博主原创,若转载请注名出处。

在Mac上安装homebrew(官网安装教程)

homebrew依赖:Command Line Tools (CLT) for Xcode或者Xcode这两者 的安装就不细说了在准备好以上工具后在terminal输入:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

关于使用homebrew的使用在这里不做介绍

确认安装成功

在terminal输入:

brew doctor

使用homebrew安装mysql

在terminal输入:

brew install mysql

homebrew的配置

使用mysql的配置脚 本:/usr/local/opt/mysql/bin/mysql_secure_installation 启动这个脚本后,即可根据如下命令提示进行初始化设置(在这之前先启动mysql服务)

sunyichaodeMacBook-Pro:~ sunyichao$ /usr/local/opt/mysql/bin/mysql_secure_installation //mysql 提供的配置向导

Securing the MySQL server deployment.

Connecting to MySQL using a blank password.

VALIDATE PASSWORD PLUGIN can be used to test passwordsand 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: k //是否采用mysql密码安全检测插件(这里作为演示选择否,密码检查插件要求密码复杂程度高,大小写字母+数字+字符等)

Please set the password for root here. // 首次使用自带配置脚本,设置root密码

New password:

Re-enter new password:

By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值