以下内容都是控制栏的东西,关键点我会用汉语解释,大家看代码照着我的做就可以正确安装。

提醒:安装MySQL时候等待时间过长问题

Updating Homebrew等待时间过长或者

解决方案:
export HOMEBREW_NO_AUTO_UPDATE=true

慢慢看下面代码,需要注意的地方我汉语都翻译了


MAC安装MySQL方法这里下载MySQL 8.0.12,输入brew install mysql就可以安装了
appledeMBP:~ apple$ brew install mysql==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.12.sierra.bottle.
Already downloaded: /Users/apple/Library/Caches/Homebrew/mysql-8.0.12.sierra.bottle.tar.gz
==> Pouring mysql-8.0.12.sierra.bottle.tar.gz==> Caveats  #这个版本的MySQL没有密码,想要密码的输入    mysql_secure_installation
We've installed your MySQL database without a root password. To secure it run:mysql_secure_installationMySQL is configured to only allow connections from localhost by defaultTo connect run:mysql -urootTo 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
==> Summary
?  /usr/local/Cellar/mysql/8.0.12: 255 files, 233.3MB下载完毕,启动MySQL
appledeMBP:~ apple$ mysql.server startStarting MySQL
. SUCCESS!
appledeMBP:~ apple$ mysql_secure_installationSecuring the MySQL server deployment.Connecting to MySQL using a blank password.VALIDATE PASSWORD COMPONENT 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 component?你要设置有效密码吗?是的,输入y,回车
Press y|Y for Yes, any other key for No: yThere are three levels of password validation policy:LOW    Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary                  file三种级别的密码,最低八位数,输入0
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0
Please set the password for root here.New password: 输入密码Re-enter new password: 重新输入Estimated strength of the password: 50
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. 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.问你是否删除默认的无密码用户,我选择删除,y
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.不允许远程访问吗?我回复y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.移除测试数据库,回答y
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y- Dropping test database...
Success.- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.重新下载数据表确保所有的更改可以立即生效,回复yReload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.All done! 搞定了输入mysql -u root -p测试下
appledeMBP:~ apple$ mysql -u root -p
Enter password: 输入密码
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.12 Homebrew Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> 

认识你是我们的缘分,同学,等等,记得关注我。

微信扫一扫
关注该公众号

MAC安装MySQL的正确姿势相关推荐

  1. 阿里云centos7使用yum安装mysql的正确姿势

    yum快速安装mysql 新增yum源 rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm 查看可用的 ...

  2. Mac安装Homebrew的正确姿势

    Homebrew 是什么 Homebrew是 mac的包管理器,仅需执行相应的命令,就能下载安装需要的软件包,可以省掉自己去下载.解压.拖拽(安装)等繁琐的步骤. 比如安装服务器 nginx,打开终端 ...

  3. Mac 安装brew的正确姿势

    你可能尝试了很多办法去安装brew,从一开始的网络超时,到一脸蒙的手动安装,本文教你如何正确安装brew 创建Homebrew目录 打开你的终端执行下面的命令,进行创建Homebrew sudo mk ...

  4. MAC安装MySQL

    文章目录 一.安装MySql Community Server 二.安装Navicat 一.安装MySql Community Server 首先要安装MySql Community Server,具 ...

  5. Linux安装CUDA的正确姿势

    Linux安装CUDA的正确姿势 CUDA(Compute Unified Device Architecture,统一计算架构)是由NVIDIA所推出的一种集成技术,是该公司对于GPGPU的正式名称 ...

  6. Mac安装MySQL后,设置初始密码

    引子: 在Mac上安装MySQL之后,通过MySQLWorkBench登录本地数据连接,发现没有密码,而在安装MySQL过程中,是没有设置过密码的.其实,刚刚安装完,是有一个界面,分配了一个初始化的密 ...

  7. mac 安装mysql

    mac 安装mysql 1. 下载档 2. 下载后学习成本很大故放弃学习 直接用linux 安装 学习 Ok 转载于:https://www.cnblogs.com/chaoren399/p/4711 ...

  8. Mac 安装MySQL到移动硬盘

    Mac 安装MySQL到移动硬盘 步骤一 下载MySQL 和 MySQL_Workbench 本来想直接把文件传上来,下载等级不够,文件传不上去.我换成发网址吧.网址要说点进去官网变了不要怪我哦. M ...

  9. Ubuntu16.04安装搜狗输入法的正确姿势

    安装搜狗输入法的正确姿势 一.下载搜狗Linux: 二.安装命令 三.卸载fcitx-ui-qimpanel 四.重启系统 + 导入sougou输入法 五.其他报错问题解决方法: 1.Errors w ...

最新文章

  1. 平流式隔油池计算_当隔油池整改工作遇上“露天铁板烧”
  2. Android 中文 API 文档 (45) —— AbsoluteLayout.LayoutParams
  3. Nessus更新到8.3.0
  4. 关于SWT开发的一个坑——Invalid thread access
  5. 我的学习之路_第二章_接口/多态
  6. python用pip安装pygame_安装pygame和pip的问题以及过程
  7. OpenCV实战4: HOG+SVM实现行人检测
  8. Spark修炼之道(进阶篇)——Spark入门到精通:第八节 Spark SQL与DataFrame(一)
  9. 五通信算法:五种编码增益比较matlab模拟
  10. mysql 存储过程:提供查询语句并返回查询执行影响的行数
  11. Rust : codewars的up AND down 算法
  12. 容器技术Docker K8s 33 04-容器服务ACK基础与进阶-06-集群管理
  13. Maven搭建SpringMVC+Hibernate项目详解
  14. [IDEA]项目web文件夹找不到
  15. 2015-5-10分享pdf
  16. matlab中wavread函数错误改用方法
  17. u盘中病毒文件夹变成.exe解决
  18. 人口logistic模型公式_最新人口指数增长模型和logistic模型教学文案
  19. xshell免费版下载教程
  20. 计算机键盘手指放置,键盘上手指放置的位置图

热门文章

  1. thymeleaf和freemarker比较
  2. python编写排列组合,密码生产功能
  3. MPEG-4 压缩编码标准
  4. wetask.cn领度任务全新试用体验
  5. JS 中通过对象关联实现『继承』
  6. 理解SQL【转http://blog.jobbole.com/55086/】
  7. Android:通过startActivityForResult方法来得到Activity的回传值
  8. 【ExtJS实践】之五 :常用语句及脚本备忘
  9. Asp.net开发之旅--简单的引用母版页
  10. apache 支持 php5