Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phpMyAdmin connect error

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hi, I just installed phpMyAdmin. I am getting the following error:

Code:
Welcome to phpMyAdmin 2.3.0


Error

MySQL said: 


MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO)

My config.inc file contains:

Code:
$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname
$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type']  = 'socket';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                    // with 'config' auth_type)

I can connect manually and through other PHP scripts.

Thanks very much.
 
Do you normally connect as root?
Do you have a password for root to connect to mysql ? (security peeps will yell - if not why not ?) ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
For creating databases, I will have to connect as root won't I?

I do have a root password set. That is what strikes me as odd... it says "using password: NO". I have the password variable set in the configuration file.

Thanks for your help.
 
Has your password got any weird characters in ? I've had this fail over an @ symbol before now. ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Hey man, I got it figured out. Thanks for all your help along the way! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top