Contribute

Installing MySQL

To install MySQL in your container, you have to run the following commands in the IDE terminal.

On Ubuntu 16.04, the latest version of MySQL is included in the APT package repository by default. Update the package index on your server and install the default mysql-server package. During the installation, you will be prompted to create a root password.

sudo apt-get update
sudo apt-get install mysql-server

It is recommended to run the included security script to change some of the less secure default configuration options. You will be asked to provide the password you chose in the installation process.

mysql_secure_installation

You can check if your MySQL server is running with the following command:

sudo service mysql status

If MySQL isn't running, you can start it using the command:

sudo systemctl start mysql

See the official documentation for more information on interacting with your database using the command line interface.