MySQL Forums
Forum List  »  Newbie

Re: MySQL Error Number 1045 Access denied
Posted by: Bill Karwin
Date: May 01, 2006 04:02PM

Here's what I'd check first:

1. Make sure you can connect using root.

mysql -h localhost --user=root --password=xxxx

Of course, use your MySQL root password, not xxxx. Note that MySQL's root has nothing to do with operating system root, and the passwords for each can be different.

2. Find these lines in the file phpMyAdmin/config.inc.php:

$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'xxxx'; // MySQL password (only needed with 'config' auth_type)

3. Edit the third line and put your MySQL root password in where I've left xxxx.

Regards,
Bill K.

Options: ReplyQuote


Subject
Written By
Posted
March 06, 2007 11:22PM
February 20, 2008 06:17AM
August 04, 2009 09:05PM
Re: MySQL Error Number 1045 Access denied
May 01, 2006 04:02PM
December 15, 2005 12:56AM
March 03, 2009 11:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.