时间:2021-07-01 10:21:17 帮助过:13人阅读
4.安装mysql
命令:yum install mysql-community-server
5.启动MySQL服务
命令:systemctl start mysqld
6.查看mysql的启动状态
命令:systemctl status mysqld
7.开机启动
命令:
systemctl enable mysqld
systemctl daemon-reload
8.修改root本地登录密码:
a.在/var/log/mysqld.log找到生成的默认密码:grep ‘temporary password‘ /var/log/mysqld.log
b.登录:mysql -uroot -p;
---恢复内容结束---
centos7环境下mysql安装
标签:安装包 启动 centos7 ase tps unit 开机启动 pass 下载