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:
but the test connection can be successful: the
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
Try to reconnect: the
connection is successful! Did you lose school?