Resetting MySQL password.

0 votes
asked by about MySQL Community Server
edited by

2 Answers

0 votes
No avatar answered by (3.1k points)

0 votes
No avatar answered by (132k points)

UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
FLUSH PRIVILEGES;

C:\> "C:\Program Files\MySQL\MySQL Server\bin\mysqld-nt.exe"
         --defaults-file="C:\\Program Files\\MySQL\\MySQL Server \\my.ini"
         --init-file=C:\\mysql-init.txt

UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
FLUSH PRIVILEGES;

mysqld_safe --init-file=/home/me/mysql-init &

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...