Skip to main content

Install Latest MySql Server in Ubuntu from APT Repository

When you want to install latest version of MySql server in Linux (Ubuntu), like other applications, the easiest way is installing it from APT repository. But, default APT repository sources in Ubuntu still doesn't include latest version of MySql. I just finished installation of Ubuntu 14.04, but when I wanted to install MySql, it still installed MySql 5.5. Latest stable version of Mysql server is 5.6 (in 2014). So, this is how you can install MySql server from APT repository.

2. download latest MySql repository configuration installer via browser or get the installer link then download it using wget command

download MySql APT configuration installer

3. go to where you save the .deb file
4. run: $ sudo dpkg -i mysql-apt-config-xxx-xxx-xxx.deb

install latest MySql APT configuration

5. choose latest MySql version you want to install.
choose MySql version you want

6. run: $ sudo apt-get update
7. run: $ sudo apt-get install mysql-server

If you already have installed older version of MySql server, you can see my older post how to upgrade MySql 5.5 to 5.6.

If you already have earlier version of MySql server and you installed new version from repository, you probably need to run following command and restart your mysql service.

$ sudo mysql_upgrade -u root -p --force

Comments