Installing phpmyadmin on Ubuntu 12.04

July 12, 2014 2.4k views

I've install digitial ocean lamp stack application

following these steps

I keep on getting this error message installing
phpmyadmin on Ubuntu 14-04

An error occurred while installing the database: │
│ │
│ ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using │
│ password: YES) │
│ │
│ If at this point you choose "retry", you will be prompted with all the │
│ configuration questions once more and another attempt will be made at │
│ performing the operation. "retry (skip questions)" will immediately │
│ attempt the operation again, skipping all questions. If you choose │
│ "abort", the operation will fail and you will need to downgrade, │
│ reinstall, reconfigure this package, or otherwise manually intervene to │
│ continue using it. If you choose "ignore", the operation will continue, │
│ ignoring further errors from dbconfig-common.

Any suggestions?

Thanks for your help

2 Answers


cat /root/.my.cnf | tail -1 | awk -F'=' '{print $2}'

to get MySQL's root password. Copy it and run the phpmyadmin installer again and use it when it asks you for the root password.

Is that right answer ? I have the some problems... But this answer can't solve the problem

anyone ??

Have another answer? Share your knowledge.