What's the login for phpMyAdmin?

后端 未结 3 836
半阙折子戏
半阙折子戏 2020-12-31 08:15

I downloaded the most recent version of XAMPP (v.1.7.7) and decided start a database. When I opened phpMyAdmin, it alerts me there is a new version of phpMyAdmin available.

相关标签:
3条回答
  • 2020-12-31 08:18

    Default is:

    Username: root
    
    Password: (just leave it blank)
    

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

    0 讨论(0)
  • 2020-12-31 08:26

    Enabling login without a password, to make it work exactly as before

    You'll need to change your configuration file. Open up your XAMPP installation directory, browse to the folder phpmyadmin, and look for a file called config.inc.php. If there isn't one already, you'll first need to copy config.sample.inc.php to config.inc.php. Then, just open config.inc.php and find this line:

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

    Change it to:

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

    Alternatively, just add a password

    Open a command prompt and type this, followed by Enter:

    mysqladmin -u root -p pass
    

    When it asks you for the current password, just press Enter again. Then set the new password, and log in to phpMyAdmin using that.

    0 讨论(0)
  • 2020-12-31 08:40

    In new versions note that you have to change your code to like this:

    mysqli_connect($mysql_hostname, $mysql_username, $mysql_password, $mysql_dbname);
    

    And for more look to this:
    Fatal error: Uncaught Error: Call to undefined function mysql_connect()

    0 讨论(0)
提交回复
热议问题