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 :     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


on a windws (correct me if im wrong)

Kind regard
Hasse R. Hansen, Denmark

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to