staging.inyokaproject.org

MySQL installation / deinstalation auf SLES 12

Status: Ungelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |

N4noBot

Anmeldungsdatum:
27. Oktober 2015

Beiträge: 23

Guten Morgen liebe Community,

ich hoffe ich kann hier hilfe finden und bin auch in der richtigen Kategorie. Ich verzweifele langsam an MySQL auf SLES 12 ... Ich habe MySQL nach der offiziellen Anleitung https://dev.mysql.com/doc/mysql-sles-repo-quick-guide/en/ installiert. Das hat auch alles wunderbar geklappt, bis ich zu dem Punkt "Securing the MySQL installation" angekommen bin. Ich habe das Problem, dass ich einfach kein root Passwort auswählen kann. Es kommt immer der Fehler error: 'Access denied for user 'root'@'localhost' (using password: NO)'. Auch wenn ich versucht habe, mich ohne Passwort einzuloggen, kam eine ähnliche Fehlermeldung. Jedenfalls habe ich dann versucht die MySQL installation rückgängig zu machen. Hat auch soweit funktioniert, bis auf dass das mysql Verzeichnis unter /var/lib/mysql nicht löschen bzw. umbenennen kann. Es kommt folgende Fehlermeldung "rm: das Entfernen von „/var/lib/mysql/“ ist nicht möglich: Das Gerät oder die Ressource ist belegt".

Falls jemand Vorschläge hat, gerne her damit. Ich verzweifel langsam an Mysql :I

Beste Grüße, N4noBot

tomtomtom Team-Icon

Supporter
Avatar von tomtomtom

Anmeldungsdatum:
22. August 2008

Beiträge: 55572

N4noBot schrieb:

Es kommt folgende Fehlermeldung "rm: das Entfernen von „/var/lib/mysql/“ ist nicht möglich: Das Gerät oder die Ressource ist belegt".

Klingt nach einem Fall für lsof oder ps - ggfs. in Verbindung mit grep zum Filtern.

lsof | grep mysql
ps -aux | grep mysql

N4noBot

(Themenstarter)

Anmeldungsdatum:
27. Oktober 2015

Beiträge: 23

Hallo tomtomtom,

danke für deine Antwort. Ich habe ebend noch ein bisschen nachgeforscht und mit mount gesehen, dass das Verzeichnis eingehängt war. Folglich habe ich ein umount auf das Verzeichnis gemacht. Hat auch geklappt. Wenn ich nun versuche mit folgendem Befehl das Verzeichnis zu löschen, bekomme ich diese Fehlermeldung:

1
2
sudo rm -rf 
rm: das Entfernen von „/var/lib/mysql/“ ist nicht möglich: Die Operation ist nicht erlaubt

Deinee Vorschläge:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
lsof | grep mysql
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 90
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
lsof: no pwd entry for UID 101
1
2
ps -aux | grep mysql
benutzername 10108  0.0  0.0  10516   932 pts/0    S+   09:20   0:00 grep --color=auto mysql

Cruiz Team-Icon

Avatar von Cruiz

Anmeldungsdatum:
6. März 2014

Beiträge: 5557

Hallo,

bei SLES habt ihr doch bestimmt offiziellen Support durch SUSE?! Die sind hier sicherlich kompetenter als ein Ubuntu-Supportforum 😉

Gruß,
Cruiz

tomtomtom Team-Icon

Supporter
Avatar von tomtomtom

Anmeldungsdatum:
22. August 2008

Beiträge: 55572

Cruiz schrieb:

bei SLES habt ihr doch bestimmt offiziellen Support durch SUSE?! Die sind hier sicherlich kompetenter als ein Ubuntu-Supportforum 😉

Man kann Support da erfragen, wo es hingehört?

Jetzt höre aber auf, sonst kriegen die Mint/Elementary/$WHATEVER-User hier noch einen Herzinfarkt! 😈

Antworten |