Restore root Password in MySQL without Access

Tiempo de lectura: < 1 minutoReading time: < 1 minute If we install MySQL and forget the root user password, we can recover it using the following steps: First, we start MySQL with sudo from the Linux console: sudo mysql Once inside, to restore the root password, execute the following command: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new_password'; Replace ... Read more






