#1045 Cannot log in to the MySQL server
Posted
by
user1198291
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user1198291
Published on 2012-06-26T14:36:03Z
Indexed on
2012/06/26
15:24 UTC
Read the original article
Hit count: 468
I am totally new in linux/ubuntu I am trying to setup lamp on my OS, however I've installed apache , php , mysql by following commands:
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo apt-get install phpmyadmin
everything works fine except that i totally cannot log into MySQL(which leads to phpmyadmin failure login) getting the errors :
#1045 Cannot log in to the MySQL server
Access denied for user 'root'@'localhost' (using password: YES)
I googled the problem and also I have tried to reinstall all installed components, but the same result came up!
in windows i usually modified the content of mysql configure file but in ubuntu nothing is as same as windows!:)
can anybody help me on this, really need to setup lampp :-S
thanks in advanced
© Ask Ubuntu or respective owner