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

查看:173
本文介绍了自动登录phpMyAdmin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们要在phpMyAdmin中自动登录用户。现在我们有一个用PHP编写的web界面。用户可以登录。登录后,他们可以单击打开phpMyAdmin的菜单中的 SQL 链接。有自动登录的方法吗?是否可以设置phpMyAdmin的cookie或某事,让他们使用它?
我们不想关闭phpMyAdmin的登录;每个用户都有自己的MySQL用户/ pass组合。因此,我们需要将用户名/密码设置传递给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.

推荐答案

c $ c> 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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