2015-08-14 32 views
10
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'.'events_waits_history' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure 
150814 9:09:14 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure 
150814 9:09:14 [Note] /usr/libexec/mysqld: ready for connections. 
Version: '5.5.44-cll-lve' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) by Atomicorp 

Potem biegnę[ERROR] Schemat Native wydajność tabela ma złą strukturę

mysql_upgrade 

To pokazuje:

Szukasz 'mysql' jak: MySQL

Szukasz „mysqlcheck "jako: mysqlcheck

BŁĄD FATAL: Aktualizacja nieudana

Odpowiedz

-2

sam problem tutaj

$ 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) 

Czy przetestować

$ mysql_upgrade -u root -p 

lub

$ mysql_upgrade --force -u root -p 
+1

to nie wygląda na rozwiązanie dla mnie - czyż nie? – kleopatra

+1

Uruchamianie, które nie rozwiązuje problemu. –

40

Wydaje się dzieje po wykonaniu uaktualnienia. Po prostu uruchom ponownie mysql:

service mysql restart 

, a błąd powinien zniknąć.

+0

To działało dla mnie po uaktualnieniu do wersji mysql 5.7.12. MySql działał dobrze, ale nie mogłem zrobić "mysqldump". Po ponownym uruchomieniu działało. –

+1

Zgadzam się. To działało dla mnie po aktualizacji MySQL do 5.7 (z aktualizacji wydania Ubuntu z 14.04 LTS do 16.04 LTS.) To powinna być akceptowana odpowiedź. – Adambean

+0

Także dla mnie. Taki sam problem. Uaktualnij 14.01 do 16.04 Ubuntu, zakończ proces Mysql. Kilka problemów i ten ostatni problem rozwiązany. Dzięki. – abkrim

-1

mysqldump wystarczy dodać parametr tak: --skip-lock-tables

można uniknąć tego błędu:

mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'ndbinfo\_version'': Native table 'performance_schema'.'session_variables' has the wrong structure (1682) 
+0

Pomyślałem, że zostało to odrzucone, ponieważ po prostu uniknęło problemu, ale może nadal działać. Niestety, to nie zadziałało, kiedy go wypróbowałem. –

2

Jeśli używasz MySQL na urządzeniu lokalnym, trzeba uaktualnić mysql, a następnie ponownie uruchom:

Upgrade:

$ mysql_upgrade -u root 

Re start:

$ mysql.server restart 
0

Windows7 Pro, MySQL 5.7, Java Tomcat

próbowałem zaktualizować serwer MySQL z wersji 5.7.8 do wersji 5.7.18 pomocą updater sieci Web Windows dostępnego na Mysql.com. Nowa wersja zainstalowany, uruchomiony jako usługa, ale nie służą niczego w tym dzienniku w

  1. Korzystanie okno poleceń Windows, zmiana katalogu C:. \ Program Files \ MySQL \ MySQL Server 5.7 \ bin

  2. Typ: mysql_upgrade --force -u -p korzeń

  3. Wprowadź hasło do poprzedniej wersji, która jest uaktualniony.

  4. Uruchom ponownie usługę MySQL w systemie Windows> Start> Narzędzia administracyjne> Usługi

serwera MySQL natychmiast zaczął i podłączony do zbiornika Java Servlet.