Jump to content

phpMyAdmin cannot connect to MySQL


james182

Recommended Posts

this has me stumped!

 

phpMyAdmin is not connecting to MySQL.

 

the error: #2005 - Unknown MySQL Server host 'localhost' (11004)

 

Config below:

 

Apache:

Listen 80

SERVERNAME localhost:80

 

MySQL:

port = 3306

 

phpMyAdmin Config:

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'myUsername';
$cfg['Servers'][$i]['password'] = 'myPassword';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;

/* End of servers configuration */

 

These settings work on my pc but not on the windows server (Windows 2003 Server).

 

Link to comment
https://forums.phpfreaks.com/topic/147525-phpmyadmin-cannot-connect-to-mysql/
Share on other sites

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.