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

推荐订阅源

Forbes - Security
Forbes - Security
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
美团技术团队
博客园 - 聂微东
博客园 - 叶小钗
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园_首页
Spread Privacy
Spread Privacy
J
Java Code Geeks
雷峰网
雷峰网
宝玉的分享
宝玉的分享
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Privacy International News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threat Research - Cisco Blogs
The Hacker News
The Hacker News
量子位
L
LINUX DO - 热门话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
GRAHAM CLULEY
D
Darknet – Hacking Tools, Hacker News & Cyber Security
月光博客
月光博客
腾讯CDC
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tor Project blog
罗磊的独立博客
V
Vulnerabilities – Threatpost
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
Project Zero
Project Zero
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tenable Blog
MyScale Blog
MyScale Blog
T
The Exploit Database - CXSecurity.com
GbyAI
GbyAI
博客园 - 【当耐特】
O
OpenAI News
Schneier on Security
Schneier on Security
S
Secure Thoughts
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Securelist
博客园 - 司徒正美

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