phpMyAdmin配置存储=>多用户 /服务器=>仍然不起作用

发布于 2025-02-08 08:19:48 字数 2437 浏览 3 评论 0原文

我的PMA安装在一台服务器(主服务器)上。

在另一台服务器(客户端1)上,我有以下内容:

我的pma-database:phpmyadmin
我的用户具有该数据库的所有特权:test_pma
我的第二个用户:迈克(Mike)

用户“ Mike”只是一个普通的MySQL使用者,其中一个数据库,并且没有对数据库“ PhpMyAdmin”的特权。

我的config.inc.php:

$i++;
$cfg['Servers'][$i]['verbose'] = 'Main Server';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['socket'] = '/test/core/mysql.sock';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/*Client Server 1...*/
$i++;
$cfg['Servers'][$i]['verbose'] = 'Client 1';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'IP-ADRESS'; // Just placeholder! In my config is the real IP!
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

// And then in a loop for every server...
...
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
...

数据库也存在,表也存在。

我试图用以下内容设置“控制使用者”:

$cfg['Servers'][$i]['controluser'] = 'test_pma';
$cfg['Servers'][$i]['controlpass'] = 'test_pma';

但也是

$cfg['Servers'][$i]['control_user'] = 'test_pma';
$cfg['Servers'][$i]['control_pass'] = 'test_pma';

以下方面的问题。
如果我以普通用户的“ Mike”登录到PMA,则会获得有关配置存储的已知警告。

由于完整的特权用户“ test_pma”都很好。

有人可以告诉我缺少什么吗?

my pma-installation is on one server(main-server).

On another server(client 1) i have the following:

my pma-database: phpmyadmin
my user with all privileges to that database: test_pma
my second user: mike

The user "mike" is just a normal mysql-user with one database and no privileges to the database "phpmyadmin".

My config.inc.php:

$i++;
$cfg['Servers'][$i]['verbose'] = 'Main Server';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['socket'] = '/test/core/mysql.sock';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/*Client Server 1...*/
$i++;
$cfg['Servers'][$i]['verbose'] = 'Client 1';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'IP-ADRESS'; // Just placeholder! In my config is the real IP!
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

// And then in a loop for every server...
...
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
...

The database exists and the tables too.

I tried to set the "controluser" with the following:

$cfg['Servers'][$i]['controluser'] = 'test_pma';
$cfg['Servers'][$i]['controlpass'] = 'test_pma';

and also with:

$cfg['Servers'][$i]['control_user'] = 'test_pma';
$cfg['Servers'][$i]['control_pass'] = 'test_pma';

but it is always the same problem.
If i log in to pma as the normal user "mike", i get the known warning about the configuration storage.

As the full privileged user "test_pma" all is fine.

Can someone tell me what is missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那小子欠揍 2025-02-15 08:19:48

该死的丛林...

在我的尝试中,我还清除了cookie和网站数据,但结果相同。

现在,我再次清除了cookie和网站数据,并且...它有效!

唯一的区别:
第一次删除cookie和网站数据
但是这次是“控制使用者 / ControlPass”。

似乎在尝试使用“ Controluser / ControlPass”的尝试中,我只登录并再次登录,但没有清除cookie和网站数据。

为什么再次登录还不够?我不知道...

关于“控制_*”,我认为没关系(根据 docs )。
也许我误会了...

Damn what a jungle...

in my attempts i also cleared cookies and website-data, but with the same result.

Now i cleared cookies and website-data again and... it works!

The only difference:
First time deleting cookies and website-data, in my config.inc.php i used "control_user / control_pass".
But this time "controluser / controlpass".

Seems that in my attempts with "controluser / controlpass" i only logged out and logged in again, but not cleared cookies and website-data.

Why just logging in again wasn't enough? I don't know...

And regarding the "control_*" i thought it would be ok (according to the docs).
Maybe i misunderstood...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文