转到WAMP
文件夹。并搜索config.inc.php
文件。当您打开该文件时,该文件将具有以下内容:
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
搜索此行:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
并将“配置”更改为“cookie”:
$cfg['Servers'][$i]['auth_type'] = 'config';
保存,然后打开phpmyadmin
,它会很好用。
回答更新的问题:
它只是一个警告,表明默认用户 root 没有密码。如果要设置root密码。
GO tp phpmyadmin interface->Previlages->select user root>edit Previlages->change password