Table 'performance_schema.session_variables' doesn't exist

后端 未结 9 1558
攒了一身酷
攒了一身酷 2020-12-22 15:00

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

相关标签:
9条回答
  • 2020-12-22 15:19

    Follow these steps without -p :

    1. mysql_upgrade -u root
    2. systemctl restart mysqld

    I had the same problem and it works!

    0 讨论(0)
  • 2020-12-22 15:21

    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.

    0 讨论(0)
  • 2020-12-22 15:21
    mysql -u app -p
    mysql> set @@global.show_compatibility_56=ON;
    

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

    0 讨论(0)
  • 2020-12-22 15:22

    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
    
    0 讨论(0)
  • 2020-12-22 15:26

    If, while using the mysql_upgrade -u root -p --force command You get this error:

    Could not create the upgrade info file '/var/lib/mysql/mysql_upgrade_info' in the MySQL Servers datadir, errno: 13
    

    just add the sudo before the command. That worked for me, and I solved my problem. So, it's: sudo mysql_upgrade -u root -p --force :)

    0 讨论(0)
  • 2020-12-22 15:36

    For my system the problem ended up being that I still had Mysql 5.6 installed and so the mysql_upgrade.exe from that installation was being called instead of the one for 5.7. Navigate to C:\Program Files\MySQL\MySQL Server 5.7\bin and run .\mysql_upgrade.exe -u root

    0 讨论(0)
提交回复
热议问题