Read the MySQL manual, chapter 6.12 entitled "Setting up the intitial MySQL
privileges".

You'll want to create a username and password, and then GRANT it the proper
privileges.

Then just alter your mysql_connect to reflect your username and password,
and it should all work fine again.


--
Plutarck
Should be working on something...
...but forgot what it was.


""r.gelstharp"" <[EMAIL PROTECTED]> wrote in message
9bkmub$9bn$[EMAIL PROTECTED]">news:9bkmub$9bn$[EMAIL PROTECTED]...
> I'm new to the game of PHP and MySQL but have the latest versions of both
> installed along with Apache on my Win 98 machine.
>
> I'm having problems connecting to a database I know is there, an empty one
> that I'm trying to use PHP to add tables to.
> In the "die()" statement to the "mysql_select_db()" function I put
> mysql_error and it came out with the message that I had no priviliges to
the
> database.
>
> How in MySQL do I get user access priviliges and how/where in the
> mysql_select_db() statement would you put a username and password?
>
> Thanks.
>
>
>
> --
> PHP Windows 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 Windows 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]

Reply via email to