XAMPP IN A LOCAL NETWORK

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP IN A LOCAL NETWORK

Postby sandip.apiit » 09. April 2010 22:46

Hello,

I have two laptop computers, which are both part of a local network.

I have installed XAMPP on both lappys(both running windows 7),

What i want is that i want to create my database on one lappy....and then use it from the other lappy....???

What is going to be my connection string : ??

$dbhost = ""; ????????????
$dbuser = "";????????
$dbpass = ""; ??????????


what should i supply for these???

generally i used to give the following values if the database was and the php script were on same machine...


$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";


it doesn't work ...if give the local ip address of my friends....

$dbhost = "192.168.1.10";
$dbuser = "root";
$dbpass = "";


Please Help....
sandip.apiit
 
Posts: 1
Joined: 09. April 2010 22:34

Re: XAMPP IN A LOCAL NETWORK

Postby memilanuk » 10. April 2010 22:14

Do you have a firewall running on the host machine? It may not allow inbound connections to the ports needed by mysql unless you explicitly open them up.
memilanuk
 
Posts: 31
Joined: 14. August 2009 23:19

Re: XAMPP IN A LOCAL NETWORK

Postby nostradamus » 10. April 2010 22:19

It may not allow inbound connections to the ports needed by mysql unless you explicitly open them up.

Are there any tricks to doing this ?

Can you give an example of how to do it ?

This sounds interesting

thanks

Richard
nostradamus
 
Posts: 11
Joined: 09. April 2010 09:09

Re: XAMPP IN A LOCAL NETWORK

Postby Narrowboyy » 11. April 2010 01:37

sandip.apiit wrote:generally i used to give the following values if the database was and the php script were on same machine...
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
localhost means just that and so is only accessible on your own PC.

You will have to change the database's host to "any host" instead of "localhost" using phpMyAdmin to be able to access the databases remotely.
Narrowboyy
 
Posts: 64
Joined: 16. February 2009 02:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 68 guests