Forgotten Mysql root password
https://stackoverflow.com/questions/7534056/mysql-root-password-change
sudo service mysql stop
sudo mysqld_safe --skip-grant-tables
(You may need to ^c or ^z to return to CLI)sudo service mysql start
sudo mysql -u root
use mysql;
show tables;
describe user;
update user set authentication_string=password('1111') where user='root';
(on some versions usePassword
instead ofauthentication_string
)login with password 1111