If you’ve forgotten your MySQL root password (or are involved with some nefarious activity), here is how you can reset that password on a Red Hat (RHEL) system or a CentOS system:
Stop MySQL:
root# service mysqld stop
Start MySQL in safe mode:
root# mysqld_safe –skip-grant-tables &
Log into MySQL as root:
[…]
Recent Comments