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
Follow these steps without -p
:
mysql_upgrade -u root
systemctl restart mysqld
I had the same problem and it works!
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.
mysql -u app -p
mysql> set @@global.show_compatibility_56=ON;
as per http://bugs.mysql.com/bug.php?id=78159 worked for me.
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
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
:)
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