ho installato il metapacchetto LAMP, ho eseguito le varie indicazioni riportate e finalmente avevo il mio bel server WEB, con apache, PHP 7, MySQL Server.
Mi sono collegato con phpadmin, installato wordpress , insomma tutto OK.
Ho eseguito anche alcuni aggiornamento di pacchetti e distribuzione ma al riavvio non mi funziona più.
In pratica MySQL non parte
Ottengo l'errore
Codice: Seleziona tutto
ago 14 18:28:57 Server systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unità mysql.service è fallita
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità mysql.service è fallita.
--
-- Il risultato è failed.
ago 14 18:28:57 Server systemd[1]: mysql.service: Unit entered failed state.
ago 14 18:28:57 Server systemd[1]: mysql.service: Failed with result 'exit-code'.
ago 14 18:28:57 Server systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
ago 14 18:28:57 Server systemd[1]: Stopped MySQL Community Server.
-- Subject: L'unità mysql.service termina la fase di spegnimento
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità mysql.service ha terminato la fase di spegnimento.
ago 14 18:28:57 Server systemd[1]: Starting MySQL Community Server...
-- Subject: L'unità mysql.service inizia la fase di avvio
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unità mysql.service ha iniziato la fase di avvio.
ago 14 18:28:57 Server systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Eseguendo sudo mysql -u root -p mysql ottengo
Codice: Seleziona tutto
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Codice: Seleziona tutto
#2002 - No such file or directory<br />Il server non risponde (o il socket del server locale MySQL non è correttamente configurato).
Eseguendo info.php, tutto funziona ovviamente, è il DB che non funziona
Tutto andava, ho riavviato e ....
Grazie e scusate la prolissità