Re: Connect with user and pwd from PHP to MySql !!!

From: Date: Thu, 11 Jan 2001 09:30:05 +0000
Subject: Re: Connect with user and pwd from PHP to MySql !!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33944@lists.php.net to get a copy of this message
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#GRA NT ----- Original Message ----- From: "Yoeri De Bruyn" <yoeri_de_bruyn@Multicap.be> To: "phpGeneralList (E-mail)" <php-general@lists.php.net> Sent: Thursday, January 11, 2001 1:24 AM Subject: [PHP] Connect with user and pwd from PHP to MySql !!! Hi, I've been looking on the cool web, but up till now I got only complex explanations about how to create users in mysql. I know it's more a MySQL question, but since lots of you are using this DB, maybe someone can just send me an example on how to create on a proper way (straight forward) users. The meaning is to consolidate the DB like: $connection = mysql_connect("localhost","nobody","dummy") or die("Couldn't connect to server."); $db = mysql_select_db("searchDB", $connection) or die("Couldn't select database. Mysql said: " .mysql_error()); I tried to add a user with password and host in the myql database and supposed to be able to use thatone for the searchDB database? Hope this doesn't sound to stupid at all! Thanks a lot for any trick or usefull example! Yoeri. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#33944) next »