Reset MySQL Password on Linux Dedicated Server

- Stop MySQL and restart in Safe Mode

service mysqld stop
killall mysqld
mysqld_safe –skip-grant-tables&

- Reset Admin Password and Permissions

- mysql psa -e “flush privileges; grant all privileges on *.* to ‘admin’@'localhost’ identified by “password”

- Replace Password

- Stop Safe Mode and Restart MySQL

killall mysqld
service mysqld start

Leave a Reply