We have two servers.
server 1 and server 2
they are running with Directadmin / CentOS6
- server 1 is running php and html, images...etc.
- server 2 is running mysql and phpmyadmin
They are all set up using directadmin.
mysql on server 2 is listening on port 4415 and I enabled 4415 port in server 1 and server 2 firewall.
- created a database on server 2 and "Access Hosts" on directadmin
- I uploaded a php-file to server 1 to connect mysql(server2).
It was very very slow and I got this error:
Can't connect to MySQL server on '18.104.22.168' (4)
When I connect to mysql(server2) from "mysql workbench" (my pc) it is very fast and works!
how can I do? I've tested all the way.