2015-08-14 10 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 

Poi corro[ERRORE] schema nativo prestazioni tavolo ha la struttura sbagliata

mysql_upgrade 

Essa mostra:

cercano 'mysql' come: mysql

cercano 'mysqlcheck 'come: mysqlcheck

ERRORE FATALE: aggiornamento fallito

risposta

-2

Stesso problema qui

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

Avete testare un

$ mysql_upgrade -u root -p 

o

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

questo non mi sembra una soluzione - vero? – kleopatra

+1

In esecuzione che non risolve il problema. –

40

sembra che questo accade dopo aver fatto l'aggiornamento. È sufficiente riavviare mysql:

service mysql restart 

e l'errore ora dovrebbe essere scomparso.

+0

Questo ha funzionato per me dopo l'aggiornamento a mysql 5.7.12. MySql sembrava funzionare bene, ma non potevo fare un 'mysqldump'. Dopo il riavvio ha funzionato. –

+1

concordo. Questo ha funzionato per me dopo aver aggiornato MySQL a 5.7 (da un aggiornamento della versione di Ubuntu da 14.04 LTS a 16.04 LTS). Questa dovrebbe essere la risposta accettata. – Adambean

+0

Anche lavorare per me. Stesso problema. Aggiornamento da 14.01 a 16.04 di Ubuntu, esito negativo del processo Mysql. Diversi problemi e questo ultimo problema risolto. Grazie. – abkrim

-1

mysqldump basta aggiungere dei parametri in questo modo: --skip-lock-tables

può evitare questo errore:

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

Ho pensato che fosse stato downvoted perché stava solo evitando un problema ma poteva ancora funzionare. Sfortunatamente, questo non ha funzionato quando l'ho provato. –

2

Se si sta eseguendo MySQL sul dispositivo locale, è necessario aggiornare il mysql e quindi riavviare:

aggiornamento:

$ mysql_upgrade -u root 

Re inizio:

$ mysql.server restart 
0

Windows7 Pro, Mysql 5.7, Java Tomcat

ho cercato di aggiornare il server MySQL dalla versione 5.7.8 alla versione 5.7.18 con il programma di aggiornamento di Windows Web accessibile Mysql.com. La nuova versione installata, avviato come servizio, ma non servirebbe qualche cosa compreso Login

  1. Utilizzando la casella dei comandi di Windows, passare alla directory C:. \ Programmi \ MySQL \ MySQL Server 5.7 \ bin

  2. Tipo: mysql_upgrade --force -u radice -p

  3. Inserire la password della versione precedente che è in fase di aggiornamento.

  4. Riavviare il servizio Mysql at Windows> Start> Strumenti di amministrazione> Servizi

server MySQL immediatamente avviato e collegato al contenitore Java Servlet.

Problemi correlati