0

i have a problem with my appserv, i am trying to log in to create a SQL database, however when i type in Localhost/phpmyadmin, it prompt the message box to fill in the username and password. and i have put it the right user and password. however my access has been denied due to wrong username/password?

this is the config.inc.php excerpt

$cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'albert';      // MySQL user
$cfg['Servers'][$i]['password']      = '1234';          // MySQL password (only needed

Note that i have changed my localhost to 127.0.0.1 even with 127.0.0.1/phpmyadmin is not working too

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

can anyone please advise what i have done wrong?

Much appreciated Albert

1 Answer 1

1

Since you're storing username and password in your configuration file try changing the auth_type to config:

$cfg['Servers'][$i]['auth_type']     = 'config';

Please reference Auth types documentation for further details, especially the following lines from http section:

In config.inc.php do not fill in values for $cfg['Servers'][$i]['user'] and $cfg['Servers'][$i]['password']

2
  • just a quick question, i am in the mysql,however i am unable to create a new database, is it because of the auth_type change to config?
    – Lexusap
    Jan 25, 2014 at 4:06
  • With auth_type config, you also need to enter the user and password fields (see the link provided by vee); probably you're being logged in as the anonymous user which won't have many permissions. Jan 26, 2014 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.