无法在PhpmyAdmin中授予特权

时间:2019-03-06 07:15:19

标签: phpmyadmin

错误:

1045-用户'root'@'localhost'的访问被拒绝(使用密码:是)

我要做什么:

我限制了数据库特权,例如不能删除或删除表。但是现在我想授予所有特权,例如删除和删除,我无法这样做。收到上述错误。

尝试的步骤:

更新mysql.user SET密码= PASSWORD('yourpassword')WHERE User ='root';

冲洗特权;

停止并重新启动mysql。

明确给出密码,并从配置文件中删除。但是却无法正常工作。

没有运气。

我的配置如下所示:

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;

0 个答案:

没有答案