【发布时间】:2020-03-04 12:19:54
【问题描述】:
我想从 I9O*Kez 更新我的 MySQL 密码 ---> SO123*
我执行这些
mysql -u root -pI9O*Kez
service mysql stop
mysqld_safe --skip-grant-tables &
mysql -uroot
use mysql;
delete from user where User='root';
CREATE USER 'root'@'%' IDENTIFIED BY 'SO123*';
GRANT ALL PRIVILEGES ON * . * TO 'root'@'%';
我一直在得到
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
我做这些完全错了吗?
更新根密码应该不会这么难吧?
【问题讨论】:
-
我是否需要执行这些
service mysql stop mysqld_safe --skip-grant-tables & mysql -uroot -
Stack Overflow 用于编程问题。 Database Administrators 是询问数据库管理问题的正确位置。那里有很多关于更改 root 密码的问题。
标签: mysql linux ubuntu mysql-error-1064