mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'gtid\_mode'': Table 'performance_schema.session_variables' doesn't exist (1146)
由于旧版本mysql数据导致的
1)
mysql_upgrade -u root -p --force #更新
2)
service mysql restart #restart mysql service
3)
mysqldump -u root -p test > test.sql #重新备份数据