Home » Mysql » Table 'performance_schema.session_variables' doesn't exist

Table 'performance_schema.session_variables' doesn't exist

Posted by: admin October 29, 2017 Leave a comment

Questions:

After upgrading MySQL to 5.7.8-rc
and loging to server I got error:

Table 'performance_schema.session_variables' doesn't exist

I can’t find any solution for this. Can you help ?

Answers:

I was able to log on to the mysql server after running the command @robregonm suggested:

mysql_upgrade -u root -p --force

A MySQL server restart is required.

Questions:
Answers:

The mysql_upgrade worked for me as well:

# mysql_upgrade -u root -p --force
# systemctl restart mysqld

Regards,
MSz.

Questions:
Answers:
mysql -u app -p
mysql> set @@global.show_compatibility_56=ON;

as per http://bugs.mysql.com/bug.php?id=78159 worked for me.

Questions:
Answers:

As sixty4bit question, if your mysql root user looks to be misconfigured, try to install the configurator extension from mysql official source:

https://dev.mysql.com/downloads/repo/apt/

It will help you to set up a new root user password.

Make sure to update your repository (debian/ubuntu) :

apt-get update

Questions:
Answers:

sometimes mysql_upgrade -u root -p --force is not realy enough,

please refer to this question : Table 'performance_schema.session_variables' doesn't exist

according to it:

  1. open cmd
  2. cd [installation_path]\eds-binaries\dbserver\mysql5711x86x160420141510\bin
  3. mysql_upgrade -u root -p --force