Installing the MySQL package on Ubuntu is extremely simple.
Open a terminal and enter the following commands.
sudo apt-get install mysql-client mysql-navigator mysql-server
Type Y to accept the additional packages. Press Enter.
After downloading and during installation, the MySQL configuration dialogs will display in the terminal.
In the first dialog, press Enter.
Enter a password for the MySQL root user. Press Enter.
Reenter the root password. Press Enter.
That’s it, MySQL is now installed and ready for use.