I have my XAMPP running up apache and mysql are running and try to a simple mysql_connect
mysql_connect('localhost', 'root', 'test123');
but the mysql_error() comes back with
Failed to connect to MySQL host. Access denied for user 'root'@'localhost' (using password: YES)
So, I open up config.inc.php inside myphpadmin and verified the credentials are correct.
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'test123';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
The only thing I am not sure is the $cfg['Servers'][$i] thing. What's this $i? Are there multiple instances of Servers?