Phpmyadmin 拒绝特定用户';s登录

Phpmyadmin 拒绝特定用户';s登录,phpmyadmin,apache2,Phpmyadmin,Apache2,我在Ubuntu上安装了phpMyAdmin3.4 现在我只想禁用通过phpmyadmin页面登录的用户(如theuser),同时允许用户登录localhost。有办法吗?Phpmyadmin安装后,默认情况下允许其他用户访问。为了安全起见,您需要设置一些访问限制,以控制外部用户的访问 具体修改过程如下: 1) 打开xampp/apache/conf/extra/HTTPD-xampp。Conf文件,搜索如果您可以在安装中找到您的config.inc.php,请在特定服务器的配置下添加以下内容

我在Ubuntu上安装了phpMyAdmin3.4


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

Phpmyadmin安装后,默认情况下允许其他用户访问。为了安全起见,您需要设置一些访问限制,以控制外部用户的访问

具体修改过程如下:


1) 打开xampp/apache/conf/extra/HTTPD-xampp。Conf文件,搜索
如果您可以在安装中找到您的
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'
);

这将禁用使用phpmyadmin作为根用户、user1或user2。没有其他更改。

这将允许从192.168.9.25和localhost进行root访问,并在配置中重复mysql root密码两次。我认为它禁用了除root以外的所有用户?
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '******';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Lang'] = '';
/ * the User for the advanced features * /
The $CFG [' the Servers'] [$I] [' controluser] = 'root';
The $CFG [' the Servers'] [$I] [' controlpass] = '* * * * * *';
/* 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'
);