Solution to error 10061 when connecting to ubuntu’s mysql service remotely

Solution to error 10061 when connecting to ubuntu’s mysql service remotely

My solution is:

First: go to /etc/mysql/mysql.conf.dthe folder and edit mysqld.cnfthe file. as the picture shows:
Insert image description here

Then: bind-addresschange that line to bind-address = 0.0.0.0.as shown in the picture:

Insert image description here
Finally: restart the mysql service.

Guess you like

Origin blog.csdn.net/weixin_42173136/article/details/133224044