Solution to error 10061 when connecting to ubuntu’s mysql service remotely
My solution is:
First: go to /etc/mysql/mysql.conf.d
the folder and edit mysqld.cnf
the file. as the picture shows:
Then: bind-address
change that line to bind-address = 0.0.0.0
.as shown in the picture:
Finally: restart the mysql service.