欢迎来到云服务器

Directadmin Linux面板

如何设置phpMyAdmin以使用cookie认证

本指南将介绍如何设置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)?

然后关闭所有浏览器并尝试再次连接。
腾讯云代理

Copyright © 2003-2021 MFISP.COM. 国外vps服务器租用 梦飞云服务器租用 版权所有 粤ICP备11019662号