How to correct problems with mysql.user when downgrading from 5.7 to 5.6

(Doc ID 2132670.1)

Last updated on MARCH 26, 2017

Applies to:

MySQL Server - Version 5.6 to 5.6 [Release 5.6]
Information in this document applies to any platform.
When following the directions for a logical downgrade from 5.7 to 5.6 in, mysql_upgrade will fail with an error like this:

Running 'mysql_fix_privilege_tables'...
ERROR 1105 (HY000) at line 1895: Unknown error
FATAL ERROR: Upgrade failed

The solution provided is for Linux systems, but the same concepts apply for other operating systems.

To solve this problem, it is necessary to replace the mysql.user table restored from a dump of the 5.7 server with a fresh 5.6 mysql.user table.

See documentation Bug 23205373 more info


 Get MySQL 5.6 running after restoring 5.7 dump of all schemas


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms