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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php