mysql: connection refused when trying to connect to localhost using remote IP

Try to edit/add bind-address = 0.0.0.0 to your [mysqld] section of your /etc/mysql/mysql.conf.d/mysqld.cnf file and restart MySQL Service.

Leave a Comment