拒绝特定用户的登录

Nat*_*ing 5 apache2 phpmyadmin

我在Ubuntu上安装了phpmyadmin 3.4.

现在我只想禁用theuser通过phpmyadmin页面登录的用户(例如),同时允许用户登录localhost.有办法吗?

com*_*ike 5

如果您可以config.inc.php在安装中找到自己的服务器,请在特定服务器的配置下添加此文件

/* block SOME users */
$cfg['Servers'][$i]['AllowRoot'] = false;
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
    'deny theuser1 from all',
    'deny theuser2 from all'
);
Run Code Online (Sandbox Code Playgroud)

这将禁用使用phpmyadmin作为root,theuser1或theuser2。没有其他改变。