Re: Access denied for user: 'root@localhost'
| From: | Adam Williams | Date: | Thu, 22 Aug 2002 15:53:31 +0000 |
| Subject: | Re: Access denied for user: 'root@localhost' | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21314@lists.php.net to get a copy of this message | ||
On the linux text console type
mysql -u root -p
and it will say mysql: and put in your password. If it gives you an error
message reply with it.
Adam
On Thu, 22 Aug 2002, Vrana Bohdan wrote:
> I had set a password for mysql user root,
> when i try to run index.php3 with body:
>
> <?php
>
> mysql_connect("localhost", "root", "pass");
>
>
>
> mysql_select_db("djs");
>
> echo mysql_errno() . ": " . mysql_error(). "\n";
>
>
>
> mysql_select_db("kossu");
>
> mysql_query("SELECT * FROM nonexistenttable");
>
> echo mysql_errno() . ": " . mysql_error() . "\n";
>
> ?>
>
>
> I'll receive this error:
> Warning: Access denied for user: 'root@localhost' (Using password: NO)
> in /home/httpd/horde/index.php3 on line 2
>
> Warning: MySQL Connection Failed: Access denied for user:
> 'root@localhost' (Using password: NO) in /home/httpd/horde/index.php3 on
> line 2
> .
> .
> .
>
> I install php and mysql support to linux system later. Where is the
> problem? What I need to do to system, to correct this (i think php)
> problem?
> It is I need to run phpMyAdmin on server. What do you recommaned to me?
>
> Thank you,
> bogio
>