[premessa]
Dovendo aggiornare il mio pc dall'attuale OpenSuse 13.1 alla Leap 42.2 dovrei anche installare un LAMP server con MySql
Per fare questo starei seguendo l'installazione che viene descritta in questa guida:
https://www.howtoforge.com/installing-apache-with-php-and-mysql-support-on-opensuse-13.1-lamp
ed ecco il problema presentarsi e' circa un mese che sto cercando di installare MySql 5.7 dapprima utilizzando i repository di Oracle/Sun debitamente scaricati sul sito ufficiale, poi nel frattempo sono apparsi i repository anche sul sito di software.opensuse.org a questo link con 1click install
https://software.opensuse.org/ymp/server:database/openSUSE_Leap_42.2/mysql-community-server.ymp?base=openSUSE%3ALeap%3A42.2&query=mysql-community-server
il problema e' che non c'e' verso a far funzionare MySql perche' tutte le volte che tento di far partire il servizio mi restituisce
# systemctl start mysql.service Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
naturalmente digitando journalctl come indicato
# journalctl -xe dic 31 16:22:25 linux-2frc systemd[1]: Failed to start MySQL server. dic 31 16:22:25 linux-2frc mysql-systemd-helper[9324]: MySQL didn't start, can't continue dic 31 16:22:25 linux-2frc systemd[1]: Failed to start MySQL 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. dic 31 16:22:25 linux-2frc systemd[1]: mysql.service: Unit entered failed state. dic 31 16:22:25 linux-2frc systemd[1]: mysql.service: Failed with result 'exit-code'. dic 31 16:22:25 linux-2frc systemd[1]: mysql.service: Service hold-off time over, scheduling restart. dic 31 16:22:25 linux-2frc systemd[1]: Stopped MySQL 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. dic 31 16:22:25 linux-2frc systemd[1]: Starting MySQL 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. dic 31 16:22:25 linux-2frc mysql-systemd-helper[9582]: my_print_defaults: [ERROR] unknown option '--mysqld' dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: my_print_defaults: [ERROR] unknown option '--mysqld' dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: Checking MySQL configuration for obsolete options... dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: Trying to run upgrade of MySQL databases... dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: Stale files from previous upgrade detected, cleaned them dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: Running protected MySQL... dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: Waiting for MySQL to start dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: 2016-12-31T15:22:26.720197Z 0 [Warning] TIMESTAMP with i dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: 2016-12-31T15:22:26.721016Z 0 [Warning] 'NO_AUTO_CREATE_ dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: 2016-12-31T15:22:26.721789Z 0 [Warning] Failed to normal dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: 2016-12-31T15:22:26.721808Z 0 [ERROR] Aborting dic 31 16:22:26 linux-2frc mysql-systemd-helper[9592]: 2016-12-31T15:22:26.721841Z 0 [Note] Binlog end
provando poi a lanciare il programma secure_installation non trovando avviato il servizio
# mysql_secure_installation Securing the MySQL server deployment. Error: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
cercando in rete ho trovato sostanzialmente le seguenti direttive:
1)fermare MySql
2)far generare una pwd (in questo caso viene creato un file "/root/.mysql_secret" che sono riuscito a fare )
3)far ricaricare il servizio con la clausola mysqld_safe --skip-grant-tables & (che pero' non sono stato in grado di farlo perche' il comando va bene per debian o derivate ma non per OpenSuse
4) Assegnare sta benedetta PWD a MySql anche se provvisoria e poi
5) lanciare mysql_secure_installation e proseguire l'installazione del LAMP server
Dato pero' che ho molte lacune informatiche MySql fa parte di queste lacune, e se ci fosse qualcuno in grado d'aiutarmi gliene sarei grato, perché non capisco come mai si crei questo errore nell'istallazione di MySql 5.7, tra l'altro lo stesso problema e' presente anche con linuxmint, quindi deve essere un problema di installazione in MySql...
Grazie...
provato a chiedere sul forum in inglese?
https://forums.opensuse.org/forum.php
SUSE Tumbleweed- kernel-5.17.7.1 kde-plasma-5.24.5.1.2 Intel Core i7 Asus P9x79 pro GeForce GTX 560-driver Nvidia-390.143-SSD samsung 850 pro 512 gb http://opensuse-community.org/