To install MySQL using apt-get, simply execute the following commands:
$ sudo apt-get update
$ sudo apt-get install mysql-server
You can verify by issuing the command:
$ mysql –version
To go to MySQL, execute this command
$ mysql -u root -p password