Report this

What is the reason for this report?

mysql 5.7.x on Ubuntu 14? (Lamp already installed)

Posted on December 5, 2014

hi,

I installed Lamp on Ubuntu 14, but i need mysql 5.7 to be installed.

Could anyone give an advice? Many thanks.



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi guys!

I’m just facing the same problem, need to upgrade a large mysql installation to 5.7. Everywhere they say that you need to upgrade to 5.6 before. Maybe that isn’t necessary? Thanks:

Andras

Here’s what I did:

wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb
sudo dpkg -i mysql-apt-config_0.6.0-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server-5.7

trevorg and vijayoncomet1’s solution worked for me without any issues, thanks.

I also had to run a mysql_upgrade command to get everything working afterwards (mysqldump was throwing up an error without doing so).

In total, here’s what I did (where ‘root’ is whatever your mysql user is):

wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb
sudo dpkg -i mysql-apt-config_0.6.0-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server
mysql_upgrade -u root -p --force

I also needed to restart mysql after doing the above. Here’s how I did so on my machine:

sudo service mysql restart

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.