Process

suggest change
  1. Stop the MySQL (mysqld) server/daemon process.
  2. Start the server with --skip-grant-tables so it will not ask for a password: mysqld_safe --skip-grant-tables &. On MySQL 8.0 this also turns on --skip-networking unless you disable that.
  3. Connect as root: mysql -u root
  4. Reload the grant tables, then change the password. FLUSH PRIVILEGES is required before ALTER USER while the grant tables are skipped:

PASSWORD() was removed in MySQL 8.0.

  1. Restart the MySQL server.

Note: this will work only if you are physically on the same server.

Online Doc: http://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents