Avatar of level9wizard
level9wizardFlag for Canada

asked on 

PHPMyAdmin Error #1045 - Access denied for user 'root'@'localhost' (using password: YES)

I just installed mysql 5.0 and newest phpmyadmin and get:
PHPMyAdmin #1045 - Access denied for user 'root'@'localhost' (using password: YES)

From a command line i did mysql -u root -p and was prompted for password, i entered it and it accepted. so the root pass is fine..

in phpmyadmin i'm using
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['username'] = 'root';
$cfg['Servers'][$i]['password'] = 'mypass';

but phpmyadmin is giving the 1045 error.

I tried doing this:

mysql> UPDATE mysql.user SET Password=PASSWORD('newpwd')
    ->                   WHERE User='root';
mysql> FLUSH PRIVILEGES;

and although it gave all 'OK' messages, i'm still not getting in thru phpmyadmin
PHPMySQL ServerWeb Languages and Standards

Avatar of undefined
Last Comment
Cedric Obinna A.
ASKER CERTIFIED SOLUTION
Avatar of Cedric Obinna A.
Cedric Obinna A.
Flag of Nigeria image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
PHP
PHP

PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.

125K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo