Archive for category MySQL

Reset MySQL root password

-Restart mysqld with the –skip-grant-tables option
Ex:
/usr/local/bin/mysqld_safe –skip-grant-tables &

Using shell mode:

# mysql -u root mysql

mysql> UPDATE user SET Password=PASSWORD(‘mynewpassword’) WHERE User=’root’;
mysql> FLUSH PRIVILEGES;
mysql> quit

Done.

Hamilton Vera

Advertisements

Leave a comment