时间:2021-07-01 10:21:17 帮助过:22人阅读
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server
成功安装之后重启mysql服务
# service mysqld restart
初次登陆是没有密码的
设置mysql密码:mysql> set password for ‘root’@‘localhost’ = password(‘mypasswd‘);
exit;
即可centos 7 安装mysql
标签:host 服务 bash comment ber restart unity arch ice