Avatar of dimensionav
dimensionavFlag for Mexico asked on

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

HI

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 192.168.1.1 and for Fedora is 192.168.1.2

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?
Regards
PHPMySQL ServerLinux

Avatar of undefined
Last Comment
Seth Simmons

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ray Paseur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
dimensionav

Thanks Ray, I have tried to watch your suggested article  but I got this message:

Permission Denied
You do not have permission to view this article.
SOLUTION
Ray Paseur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy