upgrade mysql 5.7 to 8 ubuntu 18.04
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @admin5f22619f891220d4d6936,
You can find answer in mysql doc. It has full details about how to upgrade. Make sure to back up data before upgrading.
There are tons of ways to upgrade in the docs. Let’s try using the APT Repository in this example.
You should do the following things:
First, add the MySQL APT repository to your system’s software repository list. The details in docs are a little abstract , i’ll give a example:
wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
It will show you a prompt, press Enter when you choose** mysql server ,then select mysql 8.0**.
Once the repo has been added, update apt index and install mysql-server:
sudo apt-get update
sudo apt-get install mysql-server
Now if you don’t get any error messages, you have already upgraded successfully. You can confirm by:
apt policy mysql-server
You will get output like this:
$ apt policy mysql-server
mysql-server:
Installed: 8.0.13-1ubuntu18.04
Candidate: 8.0.13-1ubuntu18.04
Please note you’ll need to do some research before actually updating MySQL.
Regards, KDSys
I’ve had the same issue in June, 2022 and the answer described on this post worked for me. https://askubuntu.com/questions/1122608/how-to-upgrade-to-mysql-8-0
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.