mysql 8 not starting fix
mv /var/lib/mysql /mnt
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mysql-server
mv /var/lib/mysql mysql-back
mv /mnt/mysql /var/lib/mysql
cp ibdata1 from /var/lib/mysql-back to /var/lib/MySQL
sudo systemctl restart MySQL
done fixed
Comments
Post a Comment