Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo,

nach nem SQL-Insert-Script

mysql -u root --password=<<password>> -vvf < /home/benutzer/dbimport20090911.sql

trat folgende Fehlermeldung auf:
sudo /etc/init.d/mysql start

 * Starting MySQL database server mysqld                                 [ OK ]

/usr/bin/mysqladmin: connect to server at 'localhost' failed

error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'

Darauf hin hab ich mir das aktuelle PW vom User 'debian-sys-maint' geholt. (Wie es in einem Tut. für das Problem beschrieben stand)
sudo nano /etc/mysql/debian.cnf

# Automatically generated for Debian scripts. DO NOT TOUCH!

[client]

host     = localhost

user     = debian-sys-maint

password = <<password>>

socket   = /var/run/mysqld/mysqld.sock

[mysql_upgrade]

user     = debian-sys-maint

password = <<password>>

socket   = /var/run/mysqld/mysqld.sock

basedir  = /usr

Der nächste Schritt soll sein:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<<password>>' WITH GRANT OPTION;

Dafür müsste man sich als Root bei MySQL anmelden, aber genau das geht nicht mehr:
mysql -u root -p

Enter password:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Mein Root-PW, sowie alle anderen auch, werden nicht mehr angenommen.

Hat jemand ne Idee wie das wieder hinzukriegen ist?

Mein Root-PW, sowie alle anderen auch, werden nicht mehr angenommen.

Hat jemand ne Idee wie das wieder hinzukriegen ist?

Backup der mysql-Datenbank im entsprechenden Datenbankordner (bei Debian /var/lib/mysql) zurück sichern bzw Neuinstallation mit vorhergehenden Backup

mysqld mit der Option "--skip-grant-tables" starten und Passwort neu setzen. Des Weiteren würde ich mal schauen, was dein sql-Skript der Datenbank antut.

This option causes the server not to use the privilege system at all. This gives anyone with access to the server unrestricted access to all databases. You can cause a running server to start using the grant tables again by executing mysqladmin flush-privileges or mysqladmin reload command from a system shell, or by issuing a MySQL FLUSH PRIVILEGES statement. This option also suppresses loading of user-defined functions (UDFs).

MySQL :: MySQL 5.0 Reference Manual :: 5.3.3 Security-Related mysqld Options

Bearbeitet von lupo49

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.