Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Access denied error while installing phpmyadmin in ubuntu11.4

Im a newbie in ubuntu. Im getting an error while installing phpmyadmin in ubuntu11.4 server. It says

An error occurred while installing the database:
ERROR 1045 (28000):Access denaid for user 'root'@'localhost' (using password:YES);

I am sure that I used the correct password for root. I can login to mysql through putty.
Do I need to do anything with privileges?

Please help me to sort this issue.

like image 394
ASR Avatar asked Jul 05 '12 03:07

ASR


People also ask

How do I fix phpMyAdmin access denied in Ubuntu?

Use ALTER USER 'root'@'localhost' IDENTIFIED BY 'PASSWORD'; FLUSH PRIVILEGES; EXIT; to set your password, then try phpMyAdmin again.

How do I completely install phpMyAdmin on Ubuntu?

We'll walk through these options shortly: sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl.

How do I access phpMyAdmin after installation?

NOTE: If successful, the above command will create an SSH tunnel but will not display any output on the server console. Access the phpMyAdmin console through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin. Log in to phpMyAdmin by using the following credentials: Username: root.

How do I install phpMyAdmin?

A: Access the terminal window on your Ubuntu server. Issue the command sudo apt-get install phpmyadmin php-mbstring php-gettext -y. Type in your sudo password when prompted, and then allow the installation to complete.


1 Answers

I suggest:

mysql -h localhost -u root -p

and you typed something else. :(

pidof mysqld says what exactly? If nothing then sudo service mysql start and try

mysql -h localhost -u root -p

again.

Re-configure mysql-server:

sudo dpkg-reconfigure mysql-server

or

sudo dpkg-reconfigure mysql-server-5.1

whichever one is installed.

Once you reconfigure (and recover) your root mysql password, then Reconfigure phpmyadmin

sudo dpkg-reconfigure phpmyadmin
like image 170
Ajay Bidyarthy Avatar answered Sep 22 '22 06:09

Ajay Bidyarthy