Fresh Reset and Install MySQL 5.7
Fresh Reset and Install MySQL 5.7
And
Install MySQL 5.7
⚠️Before going through the guide try this command if it gonna install MySQL 5.7
correctly, when you see the white windows you can jump to step 9, and see what to
choose :
If this command did not install 5.7 correctly you can continue reading the guide.
Note: during this guide, don't go to the next step if you have errors in the current
step you are in, make sure there are no errors.
Very rare but following this guide, you may find some errors. You can try to
copy-paste errors to AI WEBSITES, to help you debug them…
https://chat.openai.com/
https://poe.com/
https://you.com/
https://www.phind.com/
Note: if you have this grep --color something, you can ignore it and continue.
sudo apt-get remove --purge mysql-server mysql-client mysql-common -y && sudo apt-get autoremove -y
If no errors occur, proceed to the next step.
If something like this shows up, Choose 'yes' and press Enter.
(if it didn't show up it ok, continue)
It should be empty as in the image below, if not try redoing the previous steps.
Check the sources.list file for MySQL repository entries (example: deb
http://repo.mysql.com/apt/ubuntu bionic main),
there should be none like the picture below:
cat /etc/apt/sources.list | grep mysql
6-Update Packages
sudo apt update
Do this command and kill all running processes (ignore grep color) :
ps aux | grep apt
In this case, we have to kill this running process using their PID :
Let's install MySQL 5.7 now (the next command is one line command) :
Note: I updated the script to select Bionic and 5.7 by default, so if you find them
already selected, you can just press enter and OK… if they are not selected by
default, follow with the pictures below.
A few windows are going to show up. Follow the prompts to select Ubuntu Bionic,
change to MySQL 5.7, and set a password if needed.
After you press enter, a list of versions will show up, scroll up select 5.7, and press
enter:
(skip this if already have 5.7 selected)
After you press enter you will see something like this, just scroll down to ok and
press enter, but notice that version did change to 5.7 :
The script will continue then another window gonna show up asking you about
MySQL password, feel free to enter any password, (for me to avoid problems I just
leave it empty which means no password ) then press enter:
The script will continue installing
journalctl -u mysql.service
cat /var/log/mysql/error.log
journalctl -xe
Others guide :
https://docs.google.com/document/d/1KtK5lm2cTzs6eudFUEtBCo8Zdt3Pl-VKhlald
4NzNKo/edit
Good luck!
You Got This ♥