- A+
所属分类:MySql
使用skip-grant-tables 模式
1. UPDATE mysql.user SET authentication_string=null WHERE User='root';
2. FLUSH PRIVILEGES;
3. mysql -u root
4. ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';
非skip-grant-tables 模式
1. ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';
- 我的微信
- 这是我的微信扫一扫
-
- 我的微信公众号
- 我的微信公众号扫一扫
-