登录

为什么phpmyadmin的配置都改了还是登陆不进去

<?php/* Servers configuration */$i = 0;/* Server: localhost [1] */$i++;$cfg['Servers'][$i]['verbose'] = 'localhost';$cfg['Servers'][$i]['host'] ='localhost';$cfg['Servers'][$i]['port'] = '';$cfg['Servers'][$i]['socket'] = '';$cfg['Servers'][$i]['connect_type'] = 'tcp';$cfg['Servers'][$i]['extension'] = 'mysqli';$cfg['Servers'][$i]['auth_type'] = 'cookie';$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = '';$cfg['Servers'][$i]['AllowNoPassword'] = true;/* End of servers configuration */$cfg['DefaultLang'] = 'en-utf-8';$cfg['ServerDefault'] = 1;$cfg['UploadDir'] = '';$cfg['SaveDir'] = '';/* rajk - for blobstreaming */$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';?>

按照配置,账户输入的root,密码为空,但是官方显示“空密码登录被禁止 (参见 允许空密码)”

后来又把配置里面的密码加上,但是使用账户和密码的方式还是登陆不上,有哪位大佬可以解答以下嘛?在线等,挺急的

# PHP
P粉533053569P粉53305356910 天前247 次浏览

全部回复(1) 我要回复

  • 王林

    王林2022-09-20 19:14:30

    要是你想用空密码,将phpmyadmin下的config.inc.php(根目录)或者config.default.php(根目录)中的$cfg['Servers'][$i]['AllowNoPassword'] = false;改为$cfg['Servers'][$i]['AllowNoPassword'] = true;要是你想设置密码不为空则将$cfg['blowfish_secret'] = '123456'; // use here a value of your choice 你要设置的密码

    回复
    0
  • 取消回复发送