Cosa fare se MariaDB non si avvia

Stai visualizzando una vecchia versione di questo article. Visualizza la versione più recente.

Possono esserci diverse ragioni per cui MariaDB non riesce ad avviarsi. Questa pagina aiuta nella risoluzione dei problemi più comuni e fornisce alcune soluzioni.

Se si ha provato tutto ciò che qui viene suggerito, e si necessita ancora di aiuto, si può chiedere su IRC o sui forum - si veda Dove sono gli altri utenti e gli sviluppatori di MariaDB? - o si può porre una domanda alla pagina Avviare e arrestare MariaDB.

Il Log degli Errori e la Directory dei Dati

Il motivo del mancato avvio è quasi certamente scritto nel Log degli Errori e, se si avvia MariaDB manualmente, nella console. Per default, il log degli errori si chiama nome_host.err e si trova nella directory dei dati.

I percorsi più comuni:

  • /var/log/
  • /var/log/mysql
  • C:\ProgramData\Mysql
  • C:\Program Files\MySQL\MySQL Server x.x\data (x.x rappresenta il numero della versione)

E' anche possibile che il log degli errori sia stato esplicitamente posizionato altrove, modificando la variabile di sistema datadir o log-error=filename - si veda my.cnf sotto.

my.cnf

L'altro file importante da considerare è my.cnf. Esso contiene le impostazioni di configurazione, come appunto la posizione della directory dei dati. Se non si sa dove si trova il file my.cnf, si veda Configurare MariaDB con my.cnf.

Can't open privilege tables

If you get the following error:

System error 1067 has occurred.
Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't exist

critical files, such as the privilege tables, are either missing or are in the wrong location. By default, MariaDB will create the privilege tables in the correct location, but the above error is quite common after an upgrade, where the configuration files point to a different location. See configuring-mariadb-with-mycnf to find the my.cnf (or my.ini) configuration file/s.

Make sure that the basedir and datadir variables are correctly set.

An incorrect my.cnf setting

When you upgrade to a new version of MariaDB, in most cases the old my.cnf configuration will work just fine. However, it's possible that one of the variables set there has been removed in the new version, or one of the values is no longer valid. Examine the specifics of the error, and then remove the invalid setting from the my.cnf file, or change it to the new name, or a valid value.

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.