I have wrote a simple program which uses MySQL db server of XAMPP. Program works fine when I connect to 'localhost':
But when I try connect a MySQL db from another computer (in my LAN):
it gives below error:
But I can connect to that 'phpmyadmin' from browser:
(or Can it be that the computers which I'm testing are domain members ?)
telnet 10.10.22.147 3306
. Your phpmyadmin can connect probably because its local host (running on the same machine as mysql) if your machine cannot connect I would suspect firewall on the remote machine is blocking, or mysql is blocking connections from non local host. Telnet is not installed by default; you have to use Add Windows Features to install it