Re: PHP help question
| From: | Hasse R. Hansen | Date: | Wed, 13 Feb 2008 16:30:12 +0000 |
| Subject: | Re: PHP help question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44592@lists.php.net to get a copy of this message | ||
Rudy sleiman wrote:
To whom it may concern I'm working on a network, i don't have internet access and the application i'm working on is not published online. Platform used: PHP with MySQL. The Database is created on PC A... I'm working on PC B... and my problem is that i am not able to connect to the PC A Database using the IP address as a host (since the database is not on my machine). but if i'm on PC A i can connect with the localhost. The question is that: do i need any configuration so i can access the database?Add the ip adress and virtual hostname in your hosts file like : 192.168.5.2 mysql and you can in your mysql connect string, write 'mysql', and the ip is the ip to the pc containing the database the hosts file is located on a linux machine /etc/hosts on a windws (correct me if im wrong) c:/windows/system32/drivers/etc/hosts Kind regard Hasse R. Hansen, Denmark