How to Reset a MySQL Password in 5 Easy Steps

  • Stop the mysqld daemon process.
  • Start the mysqld daemon process with the –skip-grant-tables option.
/etc/mysql/my.cnf
....
[mysqld]
skip-grant-tables
....

  • Start the mysql client with the -u root option.
  • Execute the UPDATE mysql.user SET Password=PASSWORD(’password’) WHERE User=’root’;
  • Execute the FLUSH PRIVILEGES; command.
mysql.txt · Last modified: 2007/06/08 11:34 by jgaspar
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0