Re: MySQL Error Number 1045 Access denied
#1045 - Access denied for user: 'root'@'localhost' (Using password: NO).
Look in the phpmyadmin folder for this file: config.inc.php
Open the file with any web editor so you can view the file in HTML mode.
Look for the following lines of code below. Usually the problem is that the line of code that holds the password — has no password entered. In the forth line of code below, enter the password (between the single quotes) that you gave when you installed MySQL. The “User Name” defaults to 'root' — as shown in the error message above. If the error message has something other than: 'root'@'localhost', leave the third line of code below as is, otherwise, replace the value 'root' with what ever value is between the single quotes in the error message that comes before the @ symbol.
This will correct the error and phpMyAdmin should now connect to MySQL. However, you may also encounter another error message when phpMyAdmin loads. This is caused by one or both of the last two lines of code below containing a value; in this case, the seconded line from the bottom contained the value: 'pma'. The third line of code from the bottom is the original line of code; I commented it out by adding the two slashes at the beginning of the line — just in case I forgot what value it originally contained if it needed to be changed back later.
Save the file and close the page. phpMyAdmin should now load without any errors occurring.
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456789';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
/* User for advanced features */
// Original Line of Code: $cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
Subject
Written By
Posted
December 29, 2004 08:39PM
December 22, 2009 04:23AM
February 07, 2005 10:11AM
September 06, 2007 11:06PM
September 30, 2007 02:35PM
February 28, 2007 11:03AM
September 23, 2006 05:45PM
November 07, 2007 11:41PM
February 07, 2006 06:09AM
February 28, 2007 11:05AM
November 30, 2008 11:32PM
Re: MySQL Error Number 1045 Access denied
February 10, 2009 10:49AM
November 03, 2009 07:36AM
September 16, 2005 04:54PM
December 31, 2006 03:51PM
February 10, 2007 08:02AM
November 13, 2005 11:05AM
December 23, 2005 06:15PM
February 16, 2006 09:07PM
February 28, 2007 11:27AM
February 20, 2008 06:17AM
September 20, 2007 07:50AM
November 11, 2005 01:19PM
December 13, 2005 02:42PM
December 15, 2005 12:56AM
February 17, 2007 11:07AM
September 03, 2007 02:40PM
September 07, 2007 10:42AM
February 13, 2009 04:29PM
September 11, 2009 08:24AM
September 19, 2009 08:54AM
December 16, 2009 03:44AM
December 22, 2009 04:21AM
December 22, 2009 01:49PM