I have been trying to reset my MySQL root password. I have run the mysqld_safe --skip-grant-tables, updated the root password, and checked the user table to make sure it is
Please follow the below steps.
step1. stop mysql
step2. sudo mysqld_safe --skip-grant-tables
sudo mysqld_safe --skip-grant-tables
step3.mysql -u root
mysql -u root
step4.use mysql;
use mysql;
step5.show tables;
show tables;
step6.describe user;
describe user;
step7.update user set authentication_string=password('1111') where user='root';
update user set authentication_string=password('1111') where user='root';
login with password 1111