199

I have done a fresh installation of Fedora 14 and installed the phpMyAdmin module. When I run phpMyAdmin, it asks me for a username and password.

What is the default username and password for phpMyAdmin?

5
  • 13
    default database username: root and the password is empty... so Username:root , Password:
    – Karthik
    Apr 28, 2011 at 12:12
  • Also try username: root and password: root if AllowNoPassword condition is set.
    – Adnan Khan
    May 22, 2013 at 6:39
  • I just install PHPMyadmin And default username was diffren
    – Salem
    Dec 11, 2014 at 11:40
  • 4
    I Just install PHPMyadmin and default Username was phpmyadmin and password was asked during install .. as well you cane use MySQL root user and password to login
    – Salem
    Dec 11, 2014 at 11:44
  • I am using mamp and I've seen commonly it has a default of Username : "root" and Password : "root" Jul 15, 2017 at 8:52

4 Answers 4

172

Default is:

Username: root

Password: [null]

The Password is set to 'password' in some versions.

7
  • 6
    In Version 4.0.6 Default username is still : root But default password is changed to : password
    – ram
    Sep 16, 2013 at 8:34
  • 2
    neither is working for me.
    – msknapp
    May 25, 2014 at 19:29
  • 4
    If you are using AMPPS, the pass is mysql
    – Cheborra
    Aug 2, 2014 at 2:43
  • 2
    didn't work for version 4.4.11. neither root, not root:password, nor root:mysql
    – Valentin H
    Jul 12, 2015 at 16:49
  • 5
    This solution works if AllowNoPassword is true in config. Doesn't work for me
    – Adib Aroui
    Aug 4, 2016 at 1:54
70

I just installed Fedora 16 (yea, I know it's old and not supported but, I had the CD burnt :) )

Anyway, coming to the solution, this is what I was required to do:

su -
gedit /etc/phpMyAdmin/config.inc.php

if not found... try phpmyadmin - all small caps.

gedit /etc/phpmyadmin/config.inc.php

Locate

$cfg['Servers'][$i]['AllowNoPassword']

and set it to:

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

Save it.

7
  • 2
    Awesome fix. Here is the file location for ver phpMyAdmin-4.0.5 phpMyAdmin-4.0.5/libraries/config.default.php
    – pal4life
    Aug 15, 2013 at 14:59
  • 2
    Doesn't work for me. It's set correctly, and it makes sense, but phpMyAdmin is always coming back to me with "Login without password is forbidden". Feb 21, 2014 at 0:29
  • 3
    It's /etc/phpmyadmin/config.inc.php instead of /etc/phpMyAdmin/config.inc.php (all lower case)
    – a06e
    Dec 17, 2015 at 19:27
  • Corrected @becko . Thanks. Next time feel free to edit it yourself :) Dec 25, 2015 at 6:18
  • 1
    For me the AllowNoPassword = TRUE; thing was already there, I just had to uncomment it.
    – Johannes
    Nov 3, 2018 at 13:48
59

This is asking for your MySQL username and password.

You should enter these details, which will default to "root" and "" (i.e.: nothing) if you've not specified a password.

4
  • 1
    That it for me, there was a dialog asking login password, but it was just login/password for MySQL
    – Nico
    Jan 27, 2014 at 14:44
  • 1
    This is the best answer, LOL on my intellegence :D +1 for your bang on answer :) May 15, 2016 at 10:59
  • This is true for the logon page, but not the setup page.
    – mckenzm
    May 18, 2016 at 10:55
  • For security reasons it is password protected and only accessible when using 127.0.0.1 as the hostname
    – Tarun
    Oct 6, 2016 at 16:01
7

If it was installed with plesk (not sure if it's just that, or on the phpmyadmin side: It changes the root user to admin.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.