时间:2021-07-01 10:21:17 帮助过:5人阅读
yum list installed | grep mysql
yum -y remove mysql-libs.x86_64
wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
yum localinstall mysql-community-release-el6-5.noarch.rpm
yum repolist all | grep mysql
yum-config-manager --disable mysql55-community
yum-config-manager --disable mysql56-community
yum-config-manager --enable mysql57-community-dmr
yum repolist enabled | grep mysql
yum install mysql-community-server
service mysqld start
chkconfig --list | grep mysqld
chkconfig mysqld on
mysql_secure_installation
5.7.10现在已经不用mysql_secure_installation命令初始化密码了,
又保存在临时文件里:/var/log/mysqld.log,
可以用grep ‘temporary password‘ /var/log/mysqld.log查找
GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY ‘1234567‘ WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY ‘1234567‘ WITH GRANT OPTION;
flush privileges;
centos6.5 mysql 安装
标签:密码 查找 centos root 检测 unit post code x86