Problema avvio MySql

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
emmetre
Prode Principiante
Messaggi: 3
Iscrizione: martedì 27 gennaio 2015, 13:46

Problema avvio MySql

Messaggio da emmetre »

Salve, ho un server mysql su ubuntu che non si avvia più.
Questo è il contenuto del file /var/log/mysql/error.log
Ho tolto solo l'ip per privacy.

Codice: Seleziona tutto

150127 13:25:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150127 13:25:41 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use$
150127 13:25:41 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release.$
150127 13:25:41 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Incorrect file format 'plugin'
150127 13:25:41 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
150127 13:25:41 InnoDB: The InnoDB memory heap is disabled
150127 13:25:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150127 13:25:41 InnoDB: Compressed tables use zlib 1.2.8
150127 13:25:41 InnoDB: Using Linux native AIO
150127 13:25:41 InnoDB: Initializing buffer pool, size = 128.0M
150127 13:25:41 InnoDB: Completed initialization of buffer pool
150127 13:25:41 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150127 13:25:41  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
150127 13:25:41  InnoDB: Waiting for the background threads to start
150127 13:25:42 InnoDB: 5.5.41 started; log sequence number 9184412
150127 13:25:42 [Note] Server hostname (bind-address): 'INDIRIZZO_IP'; port: 3306
150127 13:25:42 [Note]   - '5.249.146.208' resolves to 'INDIRIZZO_IP';
150127 13:25:42 [Note] Server socket created on IP: 'INDIRIZZO_IP'.
150127 13:25:42 [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect file format 'host'
150127 13:25:42 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

Grazie a tutti.
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: Problema avvio MySql

Messaggio da SuperStep »

prova a dare

Codice: Seleziona tutto

mysql_upgrade
come dice il log
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
emmetre
Prode Principiante
Messaggi: 3
Iscrizione: martedì 27 gennaio 2015, 13:46

Re: Problema avvio MySql

Messaggio da emmetre »

Innanzi tutto grazie della risposta.
Avevo gia' provato, questa è la risposta della macchina.

Codice: Seleziona tutto

root@MySql:/# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
FATAL ERROR: Upgrade failed
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: Problema avvio MySql

Messaggio da SuperStep »

devi dare anche utente e password secondo la pagina di man

Codice: Seleziona tutto

mysql_upgrade -u user -p password
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
emmetre
Prode Principiante
Messaggi: 3
Iscrizione: martedì 27 gennaio 2015, 13:46

Re: Problema avvio MySql

Messaggio da emmetre »

Stessu risultato :muro:
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti