Using PHPMYADMIN

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
sandip.apiit
Forum Newbie
Posts: 1
Joined: Fri Apr 09, 2010 5:03 pm

Using PHPMYADMIN

Post by sandip.apiit »

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 other lappy....

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


Please Help....
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Using PHPMYADMIN

Post by Christopher »

The IP address should work if the laptops and MySQL are configured correctly. Is that the correct IP and does the second laptop have access to it? Is the MySQL user root have access granted from the second laptop?
(#10850)
Post Reply