I
I
iliyaisd2018-04-19 14:05:46
MySQL
iliyaisd, 2018-04-19 14:05:46

I can't set up an external connection to MySQL in China, what's the problem?

Dear colleagues, tell me please.
It is necessary to deploy the project to a server in China. Usually this was resolved bind-address = 0.0.0.0.
Did not work. If I put the server IP there, then the service does not start (start from root). I thought maybe the firewall cuts:

/sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPT

Did not help.
It is also alarming that the /etc/my.cnf file is very small (there was no bind-address at first).
What could be the problem? OS CentOS 7. MySQL 5.7.22.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-04-19
@feanor7

Check if the service is running, netstat -anp what does it say?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question