james182 Posted March 2, 2009 Share Posted March 2, 2009 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 More sharing options...
fenway Posted March 2, 2009 Share Posted March 2, 2009 Localhost may not be aliased properly on windows boxes... did you check? Link to comment https://forums.phpfreaks.com/topic/147525-phpmyadmin-cannot-connect-to-mysql/#findComment-774539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.