I am following this tutorial in order to install MySql version 8.x in my Ubuntu 16.04.
Before the second step I should have the prompt asking me which version I wish to configure with mysql 8-0 in the list. But I am getting only the version 5.7, as we can see in the picture below:
If I go until the final step it will install the version 5.7.
How to install the version 8.x?
Note: previously I had MariaDb instaled, and then I went trough this steps in order to uninstall.
sudo apt-get remove mariadb-server
Update
In fact something that is not in the tutorial - we should accept mysql 5.7. In the next window, we will be asked to change to mysql 8.x See this video.
With images: https://www.percona.com/blog/2018/05/14/installing-mysql-8-on-ubuntu-16-04-lts/
Make sure you're installing version 8. You can download it here, or through the terminal by doing:
Navigate to where the
.deb
package was downloaded and run the following in your terminal:You will get a config prompt... Just select "OK".
Since the repository has been installed, run the following to install:
The latest version of MySQL will be installed on your system. During the installation, you should be prompted to create and confirm a MySQL root password.
You can confirm whether you want to use the new password encryption feature... It is "recommended" to.
After following these steps, MySQL should have been installed in your system!
Additionally:
You can log in by running the command:
That will take you to a MySQL welcome screen such as: