Mysql said: #1045 - access denied for user: ...

How to use phpmyadmin.... phpmyadmin related arguments. Even phpMyAdmin issues

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 6
Joined: Sun Dec 07, 2003 10:34 pm

Wed Dec 10, 2003 11:43 pm

Hi guys,

I recently installed mysql and installed phpmyadmin into my document root directory for apache.

When I open the browser to my phpadmin page ( I get the following error:

MySQL said:
#1045 - Access denied for user: 'root@localhost' (Using password: NO)

I can access the mysql database from "mysql control centre" and modify tables etc.

I have read extensively about modifying the file to include the root password / username, but after my attemps to put the admin user and password on every like it requests a password, it still returns the above error message.

Does anyone have a working Phpmyadmin config file they could post? (quote out your passwords of course), I cant find any examples from searching.

I would appreciate any input anyone might be able to give.

Thanks for reading,


User avatar
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Thu Dec 11, 2003 3:18 am

first what do you do to access mysql via the command prompt???
and after doing that do you have access to the table "mysql"??

put that username and password....

if you just access it as

Code: Select all



then you are not using any password or username..
thats it. don't enter any password and username in the file

Post Reply