标签:dev ted pre stat word mysq res cal rate
grep ‘temporary password‘ /var/log/mysqld.log
2016-12-01T00:22:31.416107Z 1 [Note] A temporary password is generated for root@localhost: mqRfBU_3Xk>r
stop mysqld
ps -ef|grep -i mysql
systemctl stop mysqld
edit /etc/my.conf
vim /etc/my.cnf
[mysqld]
skip-grant-tables
change password
# mysql -u root
mysql> use mysql;
mysql> update mysql.user set authentication_string=password(‘123‘) where user=‘root‘;
mysql> flush privileges;
mysql> exit
comment skip-grant-tables in /etc/my.cnf
restart mysql
systemctl stop mysqld
systemctl start mysqld
install mysql in centos and change passoword
标签:dev ted pre stat word mysq res cal rate
原文地址:https://www.cnblogs.com/otfsenter/p/9092137.html