Re: Connecting to MySQL

From: Date: Fri, 22 Jun 2001 13:25:08 +0000
Subject: Re: Connecting to MySQL
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9734@lists.php.net to get a copy of this message
What needs to be done is that you create a new user in the 'user' databese where you replace 'localhost' with the IP number of the machine you will be using to log in to your database and then grant the appropriate priviliges. hope to have been of any help. jan Lester June Cabrera wrote: > How can I connect to our MySQL server remotely. Ordinarily, we upload the > same PHP application the same machine that runs MySQL too. So, I just > access it using "localhost" in the mysql_connect( ) function, like: > > mysql_connect($servername,$dbusername,$dbpassword); > > where $servername = "localhost" > > What if I want to access the MySQL server from my Win test machine that > runs Apache? > > Thanks, > Lester > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#9734) next »