美文网首页
centos mysql安装,密码修改,开机启动

centos mysql安装,密码修改,开机启动

作者: 吕志豪 | 来源:发表于2017-12-03 15:23 被阅读0次
image.png

yum install mysql-server mysql mysql-devel
systemctl start mysql
chkconfig --list |grep mysqld
chkconfig mysqld on
mysqladmin -u root password a123456
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
FLUSH PRIVILEGES;

centos7 mysql被移除
使用

# 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_config_editor set --login-path=local --host=localhost --user=db_user --password

相关文章

网友评论

      本文标题:centos mysql安装,密码修改,开机启动

      本文链接:https://www.haomeiwen.com/subject/qywabxtx.html