自动登录 phpMyAdmin [英] Auto-login phpMyAdmin

查看:31
本文介绍了自动登录 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆