Install mysql-server package

sudo apt-get install -y mysql-server

Create the root password for mysql. The password here is "mygreatsecret"

Change the bind address from 127.0.0.1 to 0.0.0.0 in /etc/mysql/my.cnf and it will look like this:

bind-address = 0.0.0.0

Restart MySQL server to ensure that it starts listening on all interfaces.

sudo restart mysql


loading table of contents...