Auto-login phpMyAdmin(自动登录 phpMyAdmin)
问题描述
我们希望在 phpMyAdmin 中自动登录用户.现在我们有了一个用 PHP 编写的 Web 界面.用户可以登录.登录后,他们可以单击打开 phpMyAdmin 的菜单中的 SQL 链接.有没有办法让他们自动登录?是否可以为 phpMyAdmin 设置 cookie 或让他们使用它的东西?我们不想关闭 phpMyAdmin 的登录;每个用户都有自己的 MySQL 用户/密码组合.所以我们需要将用户名/密码设置传递给 phpMyAdmin.
We want to auto login users in phpMyAdmin. Now we have a web-interface, written in PHP. Users can login. After logging in, they can click on the SQL link in the menu that opens phpMyAdmin. Is there a way to log them in automatically? Is it possible to set cookies for phpMyAdmin or something to let them use it?
We don't want to turn off phpMyAdmin's login; each user has his own MySQL user/pass combination. So we need to pass the username/password settings to phpMyAdmin.
推荐答案
您可以简单地在名为 pma_username 的字段中发布用户名,并在 pma_password 中发布密码.或者,如果您使用 http 身份验证模式,您可以创建一个包含用户名和密码的链接,例如 http://user:pass@www.host.com/phpmyadmin/...
You can simply post the username in a field named pma_username and the password in pma_password. Or, if you're using http auth mode you can create a link with username and password like http://user:pass@www.host.com/phpmyadmin/...
这篇关于自动登录 phpMyAdmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:自动登录 phpMyAdmin
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
