Code: Select all
systemctl stop mysqldCode: Select all
sudo nano /etc/mysql/my.cnfCode: Select all
[mysqld]
# For debugging and recovery only #
skip-grant-tables
skip-networkingCode: Select all
sudo systemctl start mysqldCode: Select all
$> mysqlCode: Select all
mysql> FLUSH PRIVILEGES;Code: Select all
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';