Schönen guten Abend,
ich habe ein Problem beim Einloggen als root in mysql.
Nach der Eingabe von "mysql -u root -p" kommt:
ERROR 1045 (28000): Acess denied for user 'root'@'localhost' (using password: YES)
Wenn ich mich mit: " mysql -u debian-sys-maint -p einlogge und
ein select user from mysql.user; mache, erhalte ich folgendes
+----------------------------------+
| user |
+----------------------------------+
| root |
| root |
| debian-sys-maint |
| phpmyadmin |
+---------------------------------|
Ist es korrekt,dass root doppelt als User auftaucht?
mysql doppelter user root in mysql.user
Re: mysql doppelter user root in mysql.user
Das Feld host ist unterschiedlich, schau dir das auch mal an. mysql unterscheidet bei Benutzern den Quellhost, d.h. du kannst einen root ohne Passwort von localhost haben und einen mit vom externen Interface (besser ist jedoch überhaupt kein Zugriff von außen).
Jesus saves. Buddha does incremental backups.
Windows ist doof, Linux funktioniert nicht • Don't break debian! • Wie man widerspricht
Windows ist doof, Linux funktioniert nicht • Don't break debian! • Wie man widerspricht
Re: mysql doppelter user root in mysql.user
… dann erhälst du Unfug.7OBGKS hat geschrieben:select user from mysql.user; mache
Code: Alles auswählen
select * from mysql.user;
Gruß Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier
Re: mysql doppelter user root in mysql.user
Ich stehe im Moment total auf dem Schlauch,
als root kan nich mich nicht mehr in mysql einloggen.
als root kan nich mich nicht mehr in mysql einloggen.
Re: mysql doppelter user root in mysql.user
...und was hast du zuletzt getan?
Jesus saves. Buddha does incremental backups.
Windows ist doof, Linux funktioniert nicht • Don't break debian! • Wie man widerspricht
Windows ist doof, Linux funktioniert nicht • Don't break debian! • Wie man widerspricht
Re: mysql doppelter user root in mysql.user
Problem gelöst mit:
1. /etc/init.d/mysql stop
2. mysqld_safe --skip-grant-tables&
3. mysql -u root
4. mysql> UPDATE mysql.user SET Password=PASSWORD('geheim') WHERE User='root';
5. mysql> FLUSH PRIVILEGES;
6. mysql> quit
6. /etc/init.d/mysql restart
1. /etc/init.d/mysql stop
2. mysqld_safe --skip-grant-tables&
3. mysql -u root
4. mysql> UPDATE mysql.user SET Password=PASSWORD('geheim') WHERE User='root';
5. mysql> FLUSH PRIVILEGES;
6. mysql> quit
6. /etc/init.d/mysql restart
Re: mysql doppelter user root in mysql.user
Du hast die Matrix kaputtgemacht!1!!7OBGKS hat geschrieben:6. mysql> quit
6. /etc/init.d/mysql restart
Gruß Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier