database - How to find out the MySQL root password -


i cannot figure out mysql root password; how can find out? there file password stored?

i following link not have directadmin directory in local.

thanks @thusharak reset root password without knowing old password.

on ubuntu did following:

sudo service mysql stop sudo mysqld_safe --skip-grant-tables --skip-syslog --skip-networking 

then run mysql in new terminal

mysql -u root 

and run following query, after changing password

update mysql.user set password=password('password') user='root'; flush privileges; 

quit mysql safe mode , start mysql service by

mysqladmin shutdown sudo service mysql start 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -