Resetting the MySQL Password

A note to myself – I just googled for this the fifth time (or more)…

# /etc/init.d/mysql stop
# echo >reset.pass SET PASSWORD FOR 'root'@'localhost' = PASSWORD\('V3rRee-Sickr3t?'\)\;
# mysqld_safe --init-file=reset.pass
# rm reset.pass

No comments yet.

Leave a Reply

Comments links could be nofollow free.