无法使用root和密码登录到localhost / phpmyadmin的php myadmin

时间:2020-03-17 21:25:29

标签: php mysql phpmyadmin

当我去登录php我的管理员时,出现以下两个错误:

mysqli_real_connect():服务器向客户端发送了未知的字符集(255)。请向开发商报告

mysqli_real_connect():(HY000 / 2054):服务器向客户端发送了未知的字符集。请向开发商报告

我的配置文件如下:

<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 4.9.4 setup script
 * Date: Tue, 17 Mar 2020 21:03:43 +0000
 */

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '******';

/* End of servers configuration */

$cfg['blowfish_secret'] = 'ySx+<-,h@|+2wY4tcJGgU*#JPr(ae*&';
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>

我的PHP myadmin是4.9.4,我的MSQL版本是8.0.18

我上网冲浪,并尝试了此配置文件的许多变体。我尝试使用套接字='' 我尝试将localhost切换到127.0.0.1以及两者的任意组合。 (我标出了密码,但确保输入了正确的密码)。迫切需要帮助!

0 个答案:

没有答案
相关问题