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?)
Please check your Firewall on the remote machine. It might block the mysql connection and has an exception rule for HTTP Ports, thats why phpMyAdmin is reachable.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.