Tell me more ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am able to successfully login and query a remote database with my command line using the following:

mysql --user=username --password stagingdb -h 10.0.0.2

However, when I try to do the same thing with phpMyAdmin I keep getting the error:

#1045 Cannot log in to the MySQL server

I have a config.inc.php that was generated by the wizard looking like this:

<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 3.5.2 setup script
 * Date: Mon, 23 Jul 2012 21:00:08 +1000
 */

/* Servers configuration */
$i = 0;

/* Server: migration [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'staging';
$cfg['Servers'][$i]['host'] = '10.0.0.2';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';

/* End of servers configuration */

$cfg['blowfish_secret'] = '500d2cccc6b664.98154413';
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>

What am I doing wrong?

share|improve this question
This config is missing user/pass. Just want to verify it actually exists and you took it out to post here? – Derek Downey Jul 23 '12 at 14:31

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.