RE: [PHP] Connect with user and pwd from PHP to MySql !!!
| From: | Yoeri De Bruyn | Date: | Thu, 11 Jan 2001 11:50:41 +0000 |
| Subject: | RE: [PHP] Connect with user and pwd from PHP to MySql !!! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33964@lists.php.net to get a copy of this message | ||
That one was really helpfull!
Thanxxx!!!
Yoeri.
Try :
MySQL Administration :
----------------------------------------------------
http://devshed.com/Server_Side/MySQL/Administration/
Philip
On Thu, 11 Jan 2001, Yoeri De Bruyn wrote:
> 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
>