/ Engineering

mysql reset root password

sudo service mysqld stop
sudo su - mysql
/usr/sbin/mysqld --skip-grant-tables --skip-networking &
mysql -u root
> flush privileges
> SET PASSWORD FOR [email protected]'localhost' = PASSWORD('myn3wpa$$word');
> quit
exit
sudo service mysqld start