Donc, aujourd’hui, j’ai installé MariaDB afin que je puisse me connecter via phpmyadmin; apparemment, cela n’a pas fonctionné; Décidé d'aller avec MySQL Server à la place. Je ne pouvais pas l'installer après avoir retiré MariaDB.
Voici ce que j'essaie de faire et les résultats:
shavit@dedi:~$ Sudo apt-get install mysql-server
[Sudo] password for shavit:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.12-0ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ...
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connect ing to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up er ror from a previous failure.
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
shavit@dedi:~$ Sudo apt-get remove mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libaio1 mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7
mysql-server-core-5.7
Use 'Sudo apt autoremove' to remove them.
The following packages will be REMOVED
mysql-server
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 159 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 35749 files and directories currently installed.)
Removing mysql-server (5.7.12-0ubuntu1) ...
Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ...
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
Je suis vraiment perdu en ce moment .. Googling m'a dit que je devrais utiliser apt-get install -f
mais c'est ce que je reçois:
shavit@dedi:~$ Sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ...
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
No apport report written because the error message indicates it's a follow-up error from a previous failure.
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
J'ai donc lancé Sudo apt-get autoremove
et procéder à l'installation à nouveau:
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.23-0ubuntu3) ...
No apport report written because the error message indicates it's a follow-up error from a previous failure.
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Je suis un débutant avec tout ce qui concerne Linux et surtout Ubuntu. Quelqu'un pourrait-il me donner la main et m'aider? Très appréciée!
Je pense que le fait que vous ayez installé MariaDB est à l'origine de ce problème. Les configurations configurées par MariaDB ne jouent pas exactement à Nice avec Vanilla MySQL. Si vous deviez purger toutes les anciennes configurations et tout configurer à partir de zéro, cela devrait fonctionner. Notez cependant que cela supprimera vos bases de données actuelles! Sauvegardez toutes les données importantes.
Essayez d’exécuter la commande suivante pour réinitialiser et purger toutes les tâches liées à MySQL:
Sudo apt purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 mysql-server
Une fois cela fait, lancez ce qui suit pour mettre à jour votre système et "nettoyer" le cache de votre paquet.
Sudo apt update && Sudo apt dist-upgrade && Sudo apt autoremove && Sudo apt -f install
Ensuite, essayez de réinstaller MySQL Server:
Sudo apt install mysql-server
Cette erreur peut se produire lorsque vous installez mariadb-server
avant mysql-server
. Pour résoudre cette erreur, vous devez supprimer les répertoires /var/lib/mysql*
et /etc/mysql*
afin de supprimer tous les fichiers de configuration et de dépendances avant de tenter de réinstaller MySQL.
Sudo apt purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 mysql-server
Sudo apt update && Sudo apt dist-upgrade && Sudo apt autoremove && Sudo apt -f install
Sudo apt install mysql-server