cat /etc/mysql/debian.cnf

grep "temporary password" /var/log/mysql/error.log

vi /etc/my.cnf
在[mysqld]下添加skip-grant-tables
flush privileges;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'YSQkczx@991188';
cat /etc/mysql/debian.cnf

grep "temporary password" /var/log/mysql/error.log

vi /etc/my.cnf
在[mysqld]下添加skip-grant-tables
flush privileges;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'YSQkczx@991188';
2171
3008
275

被折叠的 条评论
为什么被折叠?