Cannot use phpMyAdmin - Access denied

Biotron2000

Active Member
Jul 20, 2004
41
0
156
I get this when trying to use phpMyAdmin, either as root or any site user:

Access denied
Probably reason of this is that you did not create configuration file. You might want to use setup script to create one.
Error

MySQL said: Documentation
#1045 - Access denied for user: '[email protected]' (Using password: NO)
phpMyAdmin was unable to read your configuration file!
This might happen if PHP finds a parse error in it or PHP cannot find the file.
Please call the configuration file directly using the link below and read the PHP error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere.
If you receive a blank page, everything is fine.

./config.inc.php


I checked the config.inc.php file, it was modified at 10:35 last night, the same time frame the cPanel Update ran.


Any ideas out there?


Thanks,
Patrick McNeal
 

Henric

Member
Feb 27, 2006
11
0
151
Maybe because of the cpanel update. Seems you are using cpanel current version

I had this problem in my servers

edit /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php +62

Make sure your 62nd line is like this

$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
 
Last edited:

faze

Registered
Jun 10, 2006
2
0
151
I've noticed this issue on 3 different servers while at work.

perhaps the cPanel repository has an uh oh in the config.inc.php?

it always seems to be the same incorrect characters:
$cfg['Servers'][$i]['host'] = 'localhost$2 // MySQL hostname or IP address

where it should be
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address

-James J
 

Biotron2000

Active Member
Jul 20, 2004
41
0
156
Thanks for the replies!
It turned out to be the line 62 issue ($2 instead of '; ). That did the trick.
Thanks again,
Patrick McNeal
 

blweb

Active Member
Oct 1, 2004
41
0
156
Thanks for the help, solved my problem on all my boxes as well... when the update was applied is when it broke.. Thanks again!

Maybe because of the cpanel update. Seems you are using cpanel current version

I had this problem in my servers

edit /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php +62

Make sure your 62nd line is like this

$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
 

biggdogg285

Well-Known Member
May 14, 2004
73
0
156
cPanel Access Level
Root Administrator
Nothing here has resolved my problem. My localhost line is correct in the confic.inc.php

Some users can't access phpMyAdmin from their cPanel. I already did a /scripts/upcp --force, and that didn't fix anything.

Any help would be appreciated!