Mysql5.7 ZIP package installation tool connection reports Table'prefomance_schema.session_variables'dosen't exist error

Mysql5.7 ZIP package installation tool connection report:
Table'prefomance_schema.session_variables'dosen't exist error

Today I packaged a 5.7 mysql with zip and configured it to connect with navict and report an error:
Insert picture description here
but the test connection can be successful: the Insert picture description here
solution:
find the installation The my.inn file under the path, change the configuration, add at the end:

#修复Table'prefomance_schema.session_variables'dosen't exist错误
show_compatibility_56 = ON
performance_schema

After adding as shown:

[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8 
[mysqld]
#设置3306端口
port = 3306 
# 设置mysql的安装目录
basedir=自己的安装目录
# 设置mysql数据库的数据的存放目录
datadir=F:\yyzsofwer\javasoftwer\mysql-5.7.30-winx64\data# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
skip-grant-tables
#修复Table'prefomance_schema.session_variables'dosen't exist错误
show_compatibility_56 = ON
performance_schema

Then restart mysql: (find your bin directory and execute cmd to open the small blackboard)

net stop mysql  
net start mysql

Insert picture description here
Try to reconnect: the
Insert picture description here
connection is successful! Did you lose school?

Guess you like

Origin blog.csdn.net/DoChengAoHan/article/details/108272554