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';

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.