Page 1 of 1

Xampp phpMyAdmin error when I try login

PostPosted: 29. February 2012 13:45
by eronardiaras
I am a beginer Xampp user.
- I installed the Xampp (Windows Xp, Xampp 1.7.7)
- Open: http://localhost/phpmyadmin/
- Type: Username: "root" passsword: ""
- Error:
"#1045 Cannot log in to the MySQL server"
"Connection for controluser as defined in your configuration failed."

The Apache and the MySQL are running as service.
My config.inc.php:
Code: Select all
<?php
/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

//$cfg['Servers'][$i]['port'] = '13306';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root';//pma
$cfg['Servers'][$i]['controlpass'] = '';

/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';

/*
 * End of servers configuration
 */

?>


What is the wrong??? Please help me...

Re: Xampp phpMyAdmin error when I try login

PostPosted: 01. March 2012 00:05
by hackattack142
is there a reason you are trying to use root as the control user instead of the standard pma?

Re: Xampp phpMyAdmin error when I try login

PostPosted: 01. March 2012 08:41
by eronardiaras
I tried the pma, but same...

And I install the xampp a Windows 7. And working!
Now I reinstall on Windows Xp, and the result:
Image

Image

Re: Xampp phpMyAdmin error when I try login

PostPosted: 01. March 2012 09:40
by eronardiaras
It is working! Another mysql service was run... I uninstall the xampp and closed the another mysql service and reinstall the xampp. And it is working now!
:D