0

Im trying with php to connect my remote server's mysql im getting this error:

"Database Connection Error: SQLSTATE[HY000] [2002] connection refused"

I made what said in that page : https://www.configserverfirewall.com/ubuntu-linux/enable-mysql-remote-access-ubuntu/

this is my setting now: enter image description here

and ofcourse restarted mysql.

ANd its still saying same error "Database Connection Error: SQLSTATE[HY000] [2002] connection refused"

What can i do else?

this is my connection setting: enter image description here

When i try port 3306 same error. What can cause that?

ps: also this is a remote connection from a hosting shared to my dedicated server

Benjamin
  • 2,073
  • 4
  • 18
  • 16
  • Does this answer your question? [How to allow remote connection to mysql](https://stackoverflow.com/questions/14779104/how-to-allow-remote-connection-to-mysql) – ROOT Mar 03 '20 at 10:49

1 Answers1

0

it was about cloudflare or other proxies. Fixed.

Benjamin
  • 2,073
  • 4
  • 18
  • 16