1. in my.cfg
[mysqld]
skip-grant-tables
2.
UPDATE mysql.user SET plugin='mysql_native_password' WHERE User='root' AND Host='localhost';
3. ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'your_new_pass';
FLUSH PRIVILEGES;
4. in my.cfg
[mysqld]
#skip-grant-tables
[mysqld]
skip-grant-tables
2.
UPDATE mysql.user SET plugin='mysql_native_password' WHERE User='root' AND Host='localhost';
3. ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'your_new_pass';
FLUSH PRIVILEGES;
4. in my.cfg
[mysqld]
#skip-grant-tables
Последнее редактирование: