惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Webroot Blog
Webroot Blog
AI
AI
P
Palo Alto Networks Blog
Attack and Defense Labs
Attack and Defense Labs
WordPress大学
WordPress大学
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
Spread Privacy
Spread Privacy
T
Tor Project blog
罗磊的独立博客
小众软件
小众软件
S
Security Affairs
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
Apple Machine Learning Research
Apple Machine Learning Research
T
Threatpost
NISL@THU
NISL@THU
博客园_首页
PCI Perspectives
PCI Perspectives
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
N
News and Events Feed by Topic
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Forbes - Security
Forbes - Security
博客园 - 叶小钗
D
Darknet – Hacking Tools, Hacker News & Cyber Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
L
LINUX DO - 热门话题
T
Threat Research - Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Security Latest
Security Latest
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Cloudflare Blog
A
About on SuperTechFans
爱范儿
爱范儿
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
TaoSecurity Blog
TaoSecurity Blog
宝玉的分享
宝玉的分享
G
GRAHAM CLULEY
雷峰网
雷峰网
F
Full Disclosure
I
Intezer
Cloudbric
Cloudbric
博客园 - 三生石上(FineUI控件)
U
Unit 42

MakeItClear

Fish Shell 设置 python3 为默认版本 Homebrew 安装及更新软件 | MakeItClear FastJson 对象、JSON、字符串、Map 之间的互转 | MakeItClear Mac 安装配置 Miniconda | MakeItClear Hyper & Fish Shell | MakeItClear Mac 终端提示: The default interactive shell is now zsh. Chrome 内置二维码功能 | MakeItClear Chrome 优秀插件推荐「持续更新」 | MakeItClear Mac 免费效率软件推荐「持续更新」 | MakeItClear
Mac 安装配置Mysql | MakeItClear
2021-03-02 · via MakeItClear

安装

brew install mysql@5.7  # 安装
brew link --force mysql@5.7 # 将mysql 5.7 版本设置为默认版本
brew services start mysql@5.7 # 启动服务,并将mysql 设置为开机自启服务
brew services list # 查看 mysql 是否成为开机自启服务

brew services stop mysql@5.7 # 停止
brew services restart mysql@5.7 # 重启
  • 说明

    The brew services start mysql@5.7 - instruction is equal to :

$ ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

设置密码

启动之后,输入下面命令设置密码

mysql_secure_installation

5.7.x对设置的密码有严格的要求,分为LOW、MEDIUM、STRONG三个等级,对应要求如下:

LOW    Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file

选low即可,输入8位,我这里使用pwd4root ,其他一路y确认即可。

启动

$ brew services start mysql@5.7
==> Successfully stopped `mysql@5.7` (label: homebrew.mxcl.mysql@5.7)

登录

$ mysql -u root -p 
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 20
Server version: 8.0.15 Homebrew