teddysun / lamp

Install LAMP (Linux + Apache + MySQL/MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu
https://lamp.sh
GNU General Public License v3.0
2.86k stars 1.06k forks source link

Failed to upgrade mysql #243

Open junglon opened 2 years ago

junglon commented 2 years ago

Always failed when upgrade mysql

`mysql-8.0.30-linux-glibc2.12-x86_64.tar.xz download completed... Moving MySQL files... Starting MySQL... ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Starting restore all of databases, Please wait a moment... MySQL all of databases restore failed, Please restore it manually Restart MySQL... Restart Apache... Clear up start... Clear up completed...

MySQL upgrade completed... root@quill:~/lamp# mysql -u root -p ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) ` Please help