[ERROR]Native table performance schema has the wrong structure

后端 未结 6 904
长情又很酷
长情又很酷 2021-02-19 00:42
150814  9:09:14 [ERROR] Native table \'performance_schema\'.\'events_waits_current\' has the wrong structure
150814  9:09:14 [ERROR] Native table \'performance_schema\'.         


        
相关标签:
6条回答
  • 2021-02-19 01:22

    If you're running MySQL on your local device, you need to upgrade your mysql and then restart:

    Upgrade:

    $ mysql_upgrade -u root  
    

    Restart:

    $ mysql.server restart
    
    0 讨论(0)
  • 2021-02-19 01:27

    mysqldump just add parameter like this: --skip-lock-tables

    can avoid this error:

    mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'ndbinfo\_version'': Native table 'performance_schema'.'session_variables' has the wrong structure (1682)
    
    0 讨论(0)
  • 2021-02-19 01:28

    Same problem here

    $ mysqldump -h localhost --lock-all-tables --set-gtid-purged=OFF -u root -p --socket=/var/run/mysqld/mysqld.sock --all-databases > dump.sql
    mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'ndbinfo\_version'': Native table 'performance_schema'.'session_variables' has the wrong structure (1682)
    

    Have you test a

    $ mysql_upgrade -u root -p
    

    or

    $ mysql_upgrade --force -u root -p
    
    0 讨论(0)
  • 2021-02-19 01:29

    It seems this happens after you have done upgrade. Simply restart mysql:

    service mysql restart
    

    and the error should now have disappeared.

    0 讨论(0)
  • 2021-02-19 01:30

    The same thing happened to me when I upgraded MySQL in MAMP Server. All I had to do was restart the server. I clicked the button "Stop Server" and then "Start Server". Everything was fine after that.

    0 讨论(0)
  • 2021-02-19 01:40

    Windows7 Pro, Mysql 5.7, Java Tomcat

    I attempted to update the mysql server from version 5.7.8 to version 5.7.18 using the Windows web updater available on Mysql.com. The new version installed, started as a service, but wouldn't serve anything including log in.

    1. Using the Windows command box, change directory to C:\Program Files\MySQL\MySQL Server 5.7\bin

    2. Type: mysql_upgrade --force -u root -p

    3. Enter the password of the previous version that is being upgraded.

    4. Restart the Mysql service at Windows > Start > Administrative Tools > Services

    The Mysql server immediately started and connected to the Java Servlet container.

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