2
I am trying to search a solution for this problem, but didn't find a solution. I am getting an error while login in phpmyadmin
#1045 Cannot log in to the MySQL server
Connection for controluser as defined in your configuration failed.
I am trying to configure config-db.php and config.inc.php files reside in /etc/phpmyadmin/ directory. There i am changing $dbname and $dbpass in config-db.php as my root user and password but still can't login. After google, i get some clue and uncommented a line in config.inc.php:
/* Uncomment the following to enable logging in to passwordless accounts,
* after taking note of the associated security risks. */
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
These things are so ridiculous, follow articles like Lamp server installation shows step by step things and i do the same thing, but i get this error thrice times. Even i can't login in mysql through shell. Please help me to sort out this problem and know the actual reason why this happen when i am enter password twice time while installing mysql.
i am redirected from stackoverflow to ask this question on superuser – Shashank – 2012-07-09T17:45:56.597
With what account are you trying to log in? Can you log in with your root account? – Rhyuk – 2012-07-09T17:52:54.343
@Rhyuk: yes i am using my root account while setup during lamp server installation – Shashank – 2012-07-09T17:55:06.727
Have you tried resetting your MySQL password? – Rhyuk – 2012-07-09T17:57:44.117
i am using only root account on my server – Shashank – 2012-07-09T18:03:34.780
@Rhyuk: Through this article http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix, i'll try but it is not worthy for me, not working on ubuntu 12.04
– Shashank – 2012-07-09T18:09:33.557