http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#GRA
NT
----- Original Message -----
From: "Yoeri De Bruyn" <[EMAIL PROTECTED]>
To: "phpGeneralList (E-mail)" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]