Fehler bei der Installation von MySQL-Server

6

Ich habe versucht, mysql-server neu zu installieren, aber während der Installation wird eine Warnung angezeigt. Es wurde installiert, aber es funktioniert nicht.

Setting up mysql-client-core-5.7 (5.7.23-0ubuntu0.18.04.1) ...
Setting up mysql-server-core-5.7 (5.7.23-0ubuntu0.18.04.1) ...
Setting up mysql-client-5.7 (5.7.23-0ubuntu0.18.04.1) ...
Setting up mysql-server-5.7 (5.7.23-0ubuntu0.18.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide 
/etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
Cannot stat file /proc/1927/fd/4: Permission denied
Cannot stat file /proc/1927/fd/5: Permission denied
Cannot stat file /proc/1927/fd/6: Permission denied
Cannot stat file /proc/1927/fd/25: Permission denied
Cannot stat file /proc/1927/fd/35: Permission denied
Cannot stat file /proc/1927/fd/36: Permission denied
Cannot stat file /proc/1927/fd/37: Permission denied
Cannot stat file /proc/1927/fd/38: Permission denied
Cannot stat file /proc/1927/fd/39: Permission denied
Cannot stat file /proc/1927/fd/40: Permission denied
Cannot stat file /proc/1927/fd/41: Permission denied
Cannot stat file /proc/1927/fd/101: Permission denied
Cannot stat file /proc/1927/fd/102: Permission denied
Cannot stat file /proc/1927/fd/1023: Permission denied
Cannot stat file /proc/2091/fd/5: Permission denied
Cannot stat file /proc/2091/fd/6: Permission denied
Cannot stat file /proc/2091/fd/7: Permission denied
Cannot stat file /proc/2091/fd/8: Permission denied
Cannot stat file /proc/2091/fd/9: Permission denied
Cannot stat file /proc/2091/fd/10: Permission denied
Cannot stat file /proc/2091/fd/11: Permission denied
Cannot stat file /proc/2091/fd/12: Permission denied
Cannot stat file /proc/2091/fd/13: Permission denied
Cannot stat file /proc/2091/fd/14: Permission denied
Cannot stat file /proc/2176/fd/3: Permission denied
Cannot stat file /proc/2316/fd/5: Permission denied
Cannot stat file /proc/2316/fd/6: Permission denied
Cannot stat file /proc/2316/fd/7: Permission denied
Cannot stat file /proc/2316/fd/8: Permission denied
Cannot stat file /proc/2316/fd/9: Permission denied
Cannot stat file /proc/2316/fd/10: Permission denied
Cannot stat file /proc/2316/fd/11: Permission denied
Cannot stat file /proc/2316/fd/12: Permission denied
Cannot stat file /proc/2316/fd/13: Permission denied
Cannot stat file /proc/2316/fd/14: Permission denied
Cannot stat file /proc/2316/fd/18: Permission denied
Cannot stat file /proc/2316/fd/19: Permission denied
Cannot stat file /proc/2316/fd/38: Permission denied
Cannot stat file /proc/2334/fd/4: Permission denied
Cannot stat file /proc/2334/fd/5: Permission denied
Cannot stat file /proc/2334/fd/6: Permission denied
Cannot stat file /proc/2334/fd/25: Permission denied
Cannot stat file /proc/2334/fd/35: Permission denied
Cannot stat file /proc/2334/fd/36: Permission denied
Cannot stat file /proc/2334/fd/37: Permission denied
Cannot stat file /proc/2334/fd/38: Permission denied
Cannot stat file /proc/2334/fd/39: Permission denied
Cannot stat file /proc/2334/fd/40: Permission denied
Cannot stat file /proc/2334/fd/41: Permission denied
Cannot stat file /proc/2334/fd/101: Permission denied
Cannot stat file /proc/2334/fd/102: Permission denied
Cannot stat file /proc/2334/fd/1023: Permission denied
Created symlink /etc/systemd/system/multi-            
user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
Setting up mysql-server (5.7.23-0ubuntu0.18.04.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.3) ...
Processing triggers for ureadahead (0.100.0-20) ...
Amit Singh Gaur
quelle
Haben Sie eine Lösung dafür gefunden?
JacobTheDev
@JacobTheDev Ja, aber die vorübergehende. Erstellen Sie einen neuen Benutzer mit einem Benutzernamen, der mit Ihrem Ubuntu-Benutzernamen identisch ist, und gewähren Sie allen Zugriff darauf.
Amit Singh Gaur
2
@JacobTheDev Ich bin auf dieses Problem gestoßen und habe den Link zu meiner Information
Dinesh
1
Und wenn es hilft, hier ist ein Tutorial MySQL - Native - Authentifizierung zur Konfiguration digitalocean.com/community/tutorials/... - Prüfschritt 3
Dinesh

Antworten:

0

Wenn Sie mysql-server auf dem Windows-Subsystem ubuntu18 installieren, können Sie direkt zu ubuntu1604 wechseln. Ich habe eine Menge Lösungen ausprobiert, aber nur auf Ubuntu1604 kann ich MySQL-Server normal installieren. In der Zwischenzeit, wenn Sie MySQL-Software vor auf Ihrem Windows 10 installiert haben, sollten Sie Win10 MySQL zunächst irgendwie deinstallieren. (Ich kenne den Grund nicht)

Versuchen Sie danach die folgenden Befehle

sudo apt purge mysql*
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql
sudo apt autoremove
sudo apt install mysql-server
phiz
quelle