mysql查询时提示Table ‘performance_schema.session_variables’ doesn’t exist

由于新库是旧数据搬迁而来,并未拷贝performance_schema库

在mysql的bin目录下执行

#mysql_upgrade -u root -p密码 --force

重启

#service mysqld restart
Shutting down MySQL....                                    [  OK  ]
Starting MySQL..                                                [  OK  ]

ok