Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i am trying to setup phpmyadmin tool on browser in Ubuntu but couldn't find the correct way . currently i use mysql -u root -p this command in terminal how can i do this

share|improve this question

migrated from stackoverflow.com Aug 27 '11 at 13:51

This question came from our site for professional and enthusiast programmers.

If you're just getting started with MySQL, I suggest you try MySQL Workbench instead of phpMyAdmin unless you have a reason why you prefer to use a web-based tool. –  Nate C-K Aug 27 '11 at 12:23

2 Answers 2



EDIT: If your phpmyadmin is only accessible locally, then you can enable the AllowNoPassword setting in the config.inc.php file in the root of the phpmyadmin install. Just uncomment this line in that file:

// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

share|improve this answer
thanks Jaitsu... now i can open phpmyadmin but now i am facing a problem [Login without a password is forbidden by configuration (see AllowNoPassword)] but i use root as username and i didnot give any password at installation how can i know my credentials? –  ajay Aug 27 '11 at 12:29
I've edited my answer –  Jaitsu Aug 27 '11 at 13:15

First you need to install phpmyadmin (assuming you have MySQL installed). I usually do this by opening up terminal and typing...

sudo apt-get install phpmyadmin

Then, the first thing I see is that I can't access phpmyadmin by typing "http://localhost/phpmyadmin" in my browser. That can be fixed by mounting phpmyadmin to your /var/www folder using the following in terminal...

sudo mount --bind /usr/share/phpmyadmin /var/www/phpmyadmin
share|improve this answer
A symlink might be more appropriate than a bind mount for this! –  Flexo Aug 27 '11 at 13:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.