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

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - myer

使用you-get下载youtube视频 找不到org.springframework.context.ConfigurableApplicationContext的类文件 无法加载oramts.dll 反射应用中的同种类型转换错误 - myer - 博客园 aspx文件生产静态html文件 在ASP.NET中实现Url Rewriting 正则表达式 c# 手机号码正则表达式 - myer jscalendar-1.0中文解决方法 GridView中嵌套GridView - myer asp.net 小偷程序实现的原理和源码 - myer GridView 排序 开源软件FtpClient几个问题 - myer CMM简介 C# ping命令的实现 - myer DIV模式窗口的实现 - myer .net中序列化和反序列化 - myer ASP.net 本地化和国际化 - myer C#编码规范 - myer
Centos7安装mysql8
myer · 2021-09-07 · via 博客园 - myer
安装mysql
# 从国内镜像下载mysql8
wget https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql80-community-el7/mysql80-community-release-el7-3.noarch.rpm

# 安装
yum install mysql80-community-release-el7-3.noarch.rpm

# 下载完成后,yum安装
yum install mysql-server

# 查看是否开机启动
systemctl list-unit-files|grep mysql
#mysqld.service                                enabled 	开机启动
#mysqld@.service                               disabled

# 如果不是开机启动,设置开机启动
systemctl enable mysqld.service
#启动mysql
systemctl start mysqld.service

# 初始化mysql
mysqld --initialize

# 查看初始化root密码
grep 'temporary password' /var/log/mysqld.log
#[root@localhost hao]# grep 'temporary password' /var/log/mysqld.log 
#2021-09-06T09:14:23.235555Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 8JmeNwgQd-DZ

# 登录
mysql -u root -p
# 出现下面提示后输入上面密码:8JmeNwgQd-DZ
Enter password:
配置mysql
# 修改初始化密码
alter user 'root'@'localhost' identified by '这里输入新密码';

# 如果搭建测试环境,可以修改密码策略,设置简易密码
# 查看密码策略
show variables like 'validate_password%';

# 设置密码复杂度为低
set global validate_password.policy=0;

#设置密码长度
set global validate_password.length=1;

# 创建新用户,这里如果执行create user 'user01'@'localhost' identified by '123456'; 只允许本地访问
create user 'user01'@'%' identified by '123456';

# 用户授权
grant all on *.* to 'user01'@'%';

现在可以用用户user01远程连接数据库,远程连接一定要设置serverTimeZone=Asia/Shanghai