Jump to content

phpMyAdmin install error 1045 but everything's right in config.inc.php


horseatingweeds

Recommended Posts

Anyone ever have this problem. I've checked over and over and my config.inc.php file have the right password and username, but when I go to the index.php of phpMyAdmin I get the 1045 Access denied for user 'root'@'localhost' (using password: NO)

 

This is phpMyAdmin version 2.11.5 with mysql 5. Here is my config:

 

/* Servers configuration */
$i = 0;

/* Server localhost (config:root) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'xxx';

Well - I've managed to find the problem. phpMyAdmin wasn't looking in the right place for my config.inc.php. According to the documentation you're supposed to make a folder called config and put the inc in there. BUT, if you look at the index.php file, it's looking in the root of phpMyAdmin folder. I tried changing the file path in index to the config folder but that wasn't working so I just copied the darn inc into the root.

 

Anyone know where to change this path? It doesn't look like it's in the index.php.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.