Create a root password for PHPMyAdmin

后端 未结 12 547
长情又很酷
长情又很酷 2020-12-12 10:19

PHPMyAdmin is giving me a message saying that the user (root) does not have a password.

So, how can I create one?

相关标签:
12条回答
  • 2020-12-12 11:08
    1. Go to phpmyadmin

    2. Open user account section:

      open user account section

    3. Use EDIT Privileges

    4. Change password and username

      change password and user name

    5. Add privileges for database

    0 讨论(0)
  • 2020-12-12 11:11

    PHPMyAdmin is telling you that your MySQL service is missing a root password. You can change it by accessing the MySQL command line interface. mysqladmin -u root password newpass

    http://www.howtoforge.com/setting-changing-resetting-mysql-root-passwords

    0 讨论(0)
  • 2020-12-12 11:12

    Open phpMyAdmin and select the SQL tab. Then type this command:

    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('your_root_password');
    

    Also change to this line in config.inc.php:

    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    

    To make phpMyAdmin prompts for your MySQL username and password.

    0 讨论(0)
  • 2020-12-12 11:12

    I believe the command you are looking for is passwd

    0 讨论(0)
  • 2020-12-12 11:12

    If you tried mysqladmin -u root password 'your_password' and MySQL says denied access, you need to change the my.ini so that the value password is blank. then try mysqladmin -u root password 'your_password' again. It should change your password and open my.ini again and change the value password to the previous one.

    0 讨论(0)
  • 2020-12-12 11:14

    Well, I believe that I've solved the password configuration 'issue' - WampServer 2.2 - Windows 7.

    The three steps that I did:

    1. In the MySQL console set a new password. To make that: mysqladmin -u root password 'your_password'

    2. In phpMyAdmin click in users and set the same password to the user root.

    3. Finally, set your new password in the config.inc.php. Don't change anything else in this file.

    This worked for me. Good luck!

    Daniel

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