Install MySQL on Linux
Installing MySQL on Linux is really simple and usually involves just a single command. We will show you how you can install MySQL on Ubuntu, a popular Linux distribution.
Open the shell and type sudo apt-get install mysql-server:
You will be promted for confirmation. Press Y to continue.
During the installation process you will be prompted to enter and repeat the password for the root user:
And that’s it! You have installed MySQL on your Linux machine.