phpMyAdmin配置存储=>多用户 /服务器=>仍然不起作用
我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该死的丛林...
在我的尝试中,我还清除了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...