directadmin

本指南将介绍如何设置phpMyAdmin以使用基于cookie /会话的登录系统。 基于cookie的登录的优点是,你可以得到一个确切的mysql错误,为什么你不能登录(如果你不能登录)。 编辑: /var/ww

如何设置phpMyAdmin以使用cookie认证

来源:梦飞科技 作者:梦飞 浏览量:85 更新:2018-05-09
本指南将介绍如何设置phpMyAdmin以使用基于cookie /会话的登录系统。
基于cookie的登录的优点是,你可以得到一个确切的mysql错误,为什么你不能登录(如果你不能登录)。
 
编辑:
/var/www/html/phpMyAdmin/config.inc.php
 
更改:

$cfg['blowfish_secret'] = '';

为:

$cfg['blowfish_secret'] = 'anyrandomtextyouwant';

更改:

$cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?

为:

$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?

然后关闭所有浏览器并尝试再次连接。
部分文章来源与网络,若有侵权请联系站长删除!