运行 phpMyAdmin v. 5.0.2 并且运行正常。
已下载5.1.0-rc1,解压到public_html并通过phpMyAdmin/setup添加服务器。
还尝试手动编辑配置。
当我尝试通过密码登录时,我只是被引导回登录页面。没有错误。
进一步来说:
http://localhost/~user/phpMyAdmin/index.php
- 输入凭证
http://localhost/~user/phpMyAdmin/index.php?route=/&route=%2F&lang=en
Apache 日志显示 302,因此不确定这是否是一个线索:
127.0.0.1 - - [13/Jan/2021:04:45:55 +0100] "POST /~user/phpMyAdmin/index.php?route=/ HTTP/1.1" 302 1554 "-" "Mozilla/5.0 ..."
127.0.0.1 - - [13/Jan/2021:04:45:55 +0100] "GET /~user/phpMyAdmin/index.php?route=/&route=%2F&lang=en HTTP/1.1" 200 6295 "-" "Mozilla/5.0 ..."
MySQL 日志中没有任何内容。
知道这里可能存在什么问题吗?
v5.0.2 配置.inc.php:
declare(strict_types=1);
$i = 0;
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['blowfish_secret'] = '.KmeninsAmd6354s^asdk?\'=DEfaeafakm7as';
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
v5.1.0-rc1 配置.inc.php:
$i = 0;
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['blowfish_secret'] = '.KmeninsAmd6354s^asdk?\'=DEfaeafakm7as';
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
使用auth_type
http
且config
运行良好。