如何在MySQL中修改`proxies_priv`
作者:互联网
我最近收到了来自MySQL的警告说:
[Warning] 'proxies_priv' entry '@ root@serverdomain' ignored in --skip-name-resolve mode.
我查看了mysql.proxies_priv,肯定有“serverdomain”的条目,但是没有“@serverdomain”的用户.关于此的文档非常稀少,我只能找到this.
如何删除此条目以及它是如何创建的?
解决方法:
鉴于link from your question,请查看表mysql.proxies_priv
mysql> show create table mysql.proxies_priv\G
*************************** 1. row ***************************
Table: proxies_priv
Create Table: CREATE TABLE `proxies_priv` (
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`Proxied_user` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`With_grant` tinyint(1) NOT NULL DEFAULT '0',
`Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
`Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
KEY `Grantor` (`Grantor`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User proxy privileges'
1 row in set (0.00 sec)
mysql>
由于它是MyISAM表,您可以截断表.
如果您需要它,请备份它并在之后截断它.
ALTER TABLE mysql.proxies_priv RENAME mysql.proxies_priv_backup;
CREATE TABLE mysql.proxies_priv LIKE mysql.proxies_priv_backup;
然后,重新启动mysql
service mysql restart
更简单的方法是使用REVOKE命令:
REVOKE PROXY ON user
FROM user [, user] ...
由于警告,您必须重新启动mysql以确保警告不会返回.
试试看 !!!
标签:mysql,permissions,mysql-5-5 来源: https://codeday.me/bug/20190806/1598778.html