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

  • Posted on December 5, 2014
  • ionewbieAsked by ionewbie


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

Could anyone give an advice? Many thanks.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

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):

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

use sudo apt-get install mysql-server instead of sudo apt-get install mysql-server-5.7.

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: