请选择 进入手机版 | 继续访问电脑版

GavinDong.com

 找回密码
 立即注册
搜索

CentOS8安装MySQL8

[复制链接]
ag 发表于 2020-2-8 23:03:39 | 显示全部楼层 |阅读模式
yum install -y vim tree psmisc lrzsz screen make sntp curl gcc g++ git
yum install -y mysql-server
systemctl start mysqld.service
systemctl enable mysqld.service
firewall-cmd --add-port=3306/tcp --permanent
firewall-cmd --reload
pstree
sudo mysql_secure_installation
mysql -uroot -p
use mysql
select Host, User from user;
update user set host = '%' where user = 'root';
flush privileges;
create database xxx;
exit

手机版|GavinDong.com ( 粤ICP备17049235号-2 )

GMT+8, 2020-2-22 03:20

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表