HowTo Fix: PhpMyAdmin Displays Blank Page After Logging In
Sunday, August 16th, 2009

Recently I published an article about Windows Vista Home Premium and the “problems” I was running into when installing my programs. Well, this time I run into another problem when I installed appserv-win32-2.6.0 . Everything seemed to work just fine, Apache was working well, but when I tried opening PhpMyAdmin for some reason it was displaying a blank page after I entered my login information.
The solution to this blank page problem is fairly easy. Simply modify this line in the phpmyadmin/config.inc.php
$cfg['Servers'][$i]['host'] = 'localhost';
to this:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
In the above code, you’re changing your name server to 127.0.0.1 in order to use TCP/IP connection. After this, you should be able to see your PhpMyAdmin page by opening in your browser the address http://127.0.0.1/PhpMyAdmin
Hope this helps!
Note: Whenever you specify “localhost” or “localhost:port” as server, the MySQL client library will override this and try to connect to a local socket (named pipe on Windows). If you want to use TCP/IP, use “127.0.0.1″ instead of “localhost”. If the MySQL client library tries to connect to the wrong local socket, you should set the correct path as Runtime Configuration in your PHP configuration and leave the server field blank.

Recientemente publique un articulo acerca de Windows Vista Home Premium y los “problemillas” con los que me estaba encontrando al instalar ciertos programas. Bueno, en esta ocacion me tope con otro problema cuando instale appserv-win32-2.6.0 . Todo parecia funcionar bien, Apache estaba funcionando bien, pero cuando quise abrir PhpMyAdmin por alguna razon solo me mostraba una pagina en blanco luego de pedirme mi informacion de logeo.
La solucion a este problema de pagina blanca fue algo simple. Solo basto modificar esta linea en phpmyadmin/config.inc.php
$cfg['Servers'][$i]['host'] = 'localhost';
to this:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
En el codigo de arriba, se esta cambiando el nombre de servidor a 127.0.0.1 con la finalidad de usar conexion TCP/IP . Luego de esto te sera posible ver tu pagina de PhpMyAdmin al abrir http://127.0.0.1/PhpMyAdmin en tu navegador.
Espero que este consejillo te haya sido util!
Nota: Siempre que especificas “localhost” o “localhost:port” como servidor, la libreria de MySQL sobreescribira esto y tratara de conectar a una soquete local (named pipe on Windows). So quieres usar TCP/IP, usa “127.0.0.1″ en lugar de “localhost”. Si la libreria MySQL trata de conectar a el soquete local incorrecto, entonces cambia la direccion correcta como Runtime Configuration en tu configuracion y deja el campo de servidor en blanco.






