Create a root password for PHPMyAdmin

后端 未结 12 548
长情又很酷
长情又很酷 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: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.

提交回复
热议问题