troubleshooting Question

How to enable PHP and MYSQL to work with other computers in a LAN

Avatar of dimensionav
dimensionavFlag for Mexico asked on
LinuxPHPMySQL Server
4 Comments3 Solutions763 ViewsLast Modified:

I have the following situation:

1. A Windows 2008 server with APP Serv (MYSQL and PHP) installed on it.
2. Inside that server there is a virtualized Fedora 18 by VMWare.
3. The IP of windows server is and for Fedora is

So the situation is that we want to connect to MYSQL server of Fedora from Windows Server or even any other computer that develop web applications using PHP.

The problem by now is that during a debug of PHP application which tries to connect to Fedora's MYSQL Server we got the following error:

Warning: mysql_connect() [function.mysql-connect]: Host 'winserver' is not allowed to connect to this MySQL server in C:\AppServ\www\myphpapp\conns\db.php on line 13

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\myphpapp\conns\db.php on line 15
Host 'winserver' is not allowed to connect to this MySQL server

Any ideas guys?
Join our community to see this answer!
Unlock 3 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros