Read chapter 6 of the MySQL manual.
It is explained there.
Nyon wrote:
>
> Hi,
>
> I am a newbie in Mysql and is confused about setting login/passwords. Just
> want a simple security measure as I am the only user.
>
> Here's the scenario:
> I managed to connect using PHP to mysql via the mysql_connect without using
> any
> hostname/password. What do I change to impose this security measure.
> The hostname and password will be keep in a *.inc file outside the web root
> directory.
>
> Thanks
> Nyon
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
><[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php