Re: PHP and MySQL?
| From: | Pierre-Alain Joye | Date: | Sat, 16 Mar 2002 17:49:25 +0000 |
| Subject: | Re: PHP and MySQL? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-6383@lists.php.net to get a copy of this message | ||
On Sat, 16 Mar 2002 11:23:05 -0600
"Randall Hobbs" <Mandrake@expert-html.net> wrote:
> Hi guys... I've got a little problem I'm sort of perplexed about. I have PHP compiled
> on my system with MySQL support. PHPINFO shows the MySQL support
> (http://www.expert-html.com/phpinfo.php). but it sure doesn't appear to be there.
>
> MySQL works fine, as I can connect through DBI on the Perl side with no problems whatsoever.
> Whenever I try to connect via PHP, it gives me this error:
>
> Warning: Access denied for user: 'root@localhost' (Using password: NO) in mysql.php
> on line 13
By default, user root is not able to connect via localhost and don t have to :). But in the case you
really need ( an admin every for your db will be a better idea), you have to change the permissions
for the root user ( see mysql permissions chapter in mysql doc).
hth
pa