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

推荐订阅源

腾讯CDC
The Cloudflare Blog
IT之家
IT之家
V
V2EX
雷峰网
雷峰网
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
小众软件
小众软件
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
A
About on SuperTechFans
B
Blog
月光博客
月光博客
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI

博客园 - 子福当自强

vue element plus el-dropdown实现command传递多个参数最简单方式 centos 8 安装 nodejs npm centos 8 安装 minio centos 8 安装 ngingx 1.20 centos 8 安装 redis 6 centos 8 rpm安装oracle jdk 11 CentOS 8.2远程连接vncserver升级后1.10.1无法启动解决记录 Eclipse:Cannot complete the install because of a conflicting dependency.问题解决 Android SDK更新以及ADT更新出现问题的解决办法 Visual Studio 2013开启JavaScript的智能提示功能 linux中mysql密码找回的两种方式 Oracle 物化视图 说明 linux下mysql字符集编码问题的修改 mysql 启动错误-server PID file could not be found 在linux安装mysql,并设置远程访问 mysql安装过程中出现错误ERROR 1820 (HY000): You must SET PASSWORD before executing this statement解决 linux 下面 jdk1.7 rpm 包的安装 java数据库连接池性能对比 网页导航栏设计模式
centos 8 安装 mysql 8
子福当自强 · 2021-12-18 · via 博客园 - 子福当自强

下载源:wget https://repo.mysql.com//mysql80-community-release-el8-2.noarch.rpm

安装源:yum install mysql80-community-release-el8-2.noarch.rpm

禁用centos8自带mysql模块:yum module disable mysql

安装:yum install mysql-community-server

开机启动:systemctl enable mysqld

重启:reboot

查看状态:systemctl status mysqld

查看默认密码:grep 'temporary password' /var/log/mysqld.log

登陆:mysql -u root - p

修改密码:alter user 'root'@'localhost' identified by '要修改的密码';

查看密码策略:show variables like 'validate_password%';

设置密码最低长度:set global validate_password.length=6;(密码最低6位)

设置密码验证策略:set global validate_password.policy=0;(最低验证要求)

开启远程访问:

  切换数据库:use mysql;

  修改用户连接限制:update user set Host = '%' where Host = 'localhost' and User='root';

  刷新授权:flush privileges;

云服务器需要在控制台开启3306端口