To allow remote control of mysql server, in addition to setting user privileges to be anyhost '%', we also need to configure config file in /etc/mysql/mysql.conf.d/mysqld.cnf sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf Replace the IP address on the bind-address with the desired IP address or use 0.0.0.0 to allow all IP addresses # # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind - address = 0.0 . 0.0 # Restart mysql server to enable configuration sudo service mysql restart