Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. mysqldump: Error 2013 - Backup v2.9.8 gelöst

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    mysqldump: Error 2013 - Backup v2.9.8 gelöst

    This topic has been deleted. Only users with topic management privileges can see it.
    • simatec
      simatec Developer Most Active @Wagner last edited by

      @wagner Bitte Code in code-tags setzen...
      Stimmen denn überhaupt deine Userdaten... Zeige mal die Settings vom SQL Adapter ...

      Und bitte die Settings von Backitup als JSON File posten

      W 1 Reply Last reply Reply Quote 0
      • W
        Wagner @simatec last edited by

        @simatec --- die Passwörte habe ich verglichen.
        sql.0.json
        system.adapter.backitup.0.json

        simatec 1 Reply Last reply Reply Quote 0
        • I
          IobNordlicht @Wagner last edited by

          @wagner sagte in mysqldump: Error 2013 - Backup v2.9.8:

          mysqldump: Got error: 1044: "Access denied for user 'iobroker'@'%' to database 'xxxx'" when selecting the database

          Ist das nicht schon das Problem und somit die Lösung?

          In Mysql muss die Datenbank "iobroker" bereits existieren. Außerdem muss der User iobroker von beliebiger Adresse aus ( -> '@%') Zugriff darauf haben. Daran scheitert das Kommando.

          @wagner sagte in [mysqldump: Error 2013 - Backup v2.9.8]:

          @iobnordlicht - Was ist "iobroker user"?

          Das ist normalerweise der Linux-User, unter welchem iobroker läuft 😉

          W 1 Reply Last reply Reply Quote 0
          • W
            Wagner @IobNordlicht last edited by

            @iobnordlicht

            MariaDB [(none)]> SHOW DATABASES;
            +--------------------+
            | Database           |
            +--------------------+
            | MeineDatenbank     |
            | information_schema |
            | iobroker           |
            | mysql              |
            | performance_schema |
            | sys                |
            +--------------------+
            6 rows in set (0,001 sec)
            
            

            Und so habe ich das Installiert (ca. vor einem Jahr)

            CREATE USER 'iobroker'@'%' IDENTIFIED BY 'xxxx';
            GRANT ALL PRIVILEGES ON iobroker.* TO 'iobroker'@'%';
            FLUSH PRIVILEGES;
            

            Das Problem ist mir erst aufgefallen nach Install von Backup v.2.9.8...

            I 1 Reply Last reply Reply Quote 0
            • I
              IobNordlicht @Wagner last edited by IobNordlicht

              @wagner
              Müsste der klassische "localhost" Fehler in Mysql sein:
              % beinhaltet nicht localhost, zumindest war das früher so, als ich mich noch auf dem Terrain bewegte 👴

              mysqldump loggt sich als iobroker@localhost oder iobroker@127.0.0.1 ein.
              Mysql wiederum hat nur "iobroker@%" als Eintrag, was, so weit ich erinnere, für externe IPs nur gilt.

              Füge mal noch zwei GRANTs hinzu, schaden kann es eh nicht.
              Dazu logge dich in mysql auf der Konsole ein und gib folgendes ein:

              GRANT ALL PRIVILEGES ON iobroker.* TO 'iobroker'@localhost;
              GRANT ALL PRIVILEGES ON iobroker.* TO 'iobroker'@127.0.0.1;
              FLUSH PRIVILEGES;
              

              Dann teste mal, ob du mit mysql -u iobroker -p dich einloggen kannst...
              Und dann teste erneut den mysqldump-Befehl....

              W 1 Reply Last reply Reply Quote 0
              • W
                Wagner @IobNordlicht last edited by

                @iobnordlicht - hat nix gebracht..

                pi@ras-ssd:~ $ sudo mysql -u root -p
                Enter password:
                Welcome to the MariaDB monitor.  Commands end with ; or \g.
                Your MariaDB connection id is 915
                Server version: 10.11.4-MariaDB-1~deb12u1 Debian 12
                
                Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
                
                Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
                
                MariaDB [(none)]> GRANT ALL PRIVILEGES ON iobroker.* TO 'iobroker'@localhost;
                ERROR 1133 (28000): Can't find any matching row in the user table
                MariaDB [(none)]> GRANT ALL PRIVILEGES ON iobroker.* TO 'iobroker'@127.0.0.1;
                ERROR 1133 (28000): Can't find any matching row in the user table
                MariaDB [(none)]> exit
                Bye
                pi@ras-ssd:~ $
                
                
                I 1 Reply Last reply Reply Quote 0
                • I
                  IobNordlicht @Wagner last edited by

                  @wagner sagte in mysqldump: Error 2013 - Backup v2.9.8:

                  ERROR 1133

                  Tjoa, würde sagen, der User iobroker existert nüschd...

                  schau mal nach SELECT User FROM mysql.user;

                  I 1 Reply Last reply Reply Quote 0
                  • I
                    IobNordlicht @IobNordlicht last edited by

                    @iobnordlicht
                    ...Oder besser gleich SELECT User,Db,Host FROM mysql.user;

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      Wagner @IobNordlicht last edited by

                      @iobnordlicht

                      MariaDB [(none)]> SELECT User FROM mysql.user;
                      +----------------+
                      | User           |
                      +----------------+
                      | MeineDatenbank |
                      | iobroker       |
                      | root           |
                      | mariadb.sys    |
                      | mysql          |
                      | root           |
                      +----------------+
                      6 rows in set (0,002 sec)
                      
                      MariaDB [(none)]> SELECT User,Db,Host FROM mysql.user;
                      ERROR 1054 (42S22): Unknown column 'Db' in 'field list'
                      MariaDB [(none)]>
                      
                      
                      I 1 Reply Last reply Reply Quote 0
                      • I
                        IobNordlicht @Wagner last edited by

                        @wagner Ok, schau dir mal mit describe mysql.user; die Spalten an, kann sein, es heißt nicht db sondern Database oder so.

                        W 1 Reply Last reply Reply Quote 0
                        • simatec
                          simatec Developer Most Active @Wagner last edited by

                          @wagner Also in deinem Backup war es keine IP sondern localhost... Das stimmt dein Log schonmal nicht zu deinen geposteten Settings... Warum zensierst du in den Settings deine lokalen IP's ... So kann man dir nicht helfen... Mit lokalen IP's kann hier kein Mensch etwas anfangen und müssen nicht zensiert werden.

                          Was ist denn nun tatsächlich in deinen Settings? localhost oder die IP?

                          1 Reply Last reply Reply Quote 0
                          • W
                            Wagner @IobNordlicht last edited by

                            @iobnordlicht - ich habe mal das versucht:

                            SELECT *  FROM mysql.user;
                            
                            I 1 Reply Last reply Reply Quote 0
                            • I
                              IobNordlicht @Wagner last edited by

                              @wagner
                              Jo, geht auch, gibt nur eine verdammt breite Tabelle 😁

                              Ok, aber bist du nun weiter?
                              Du siehst ja nun, welche User in welchen Kombinationen aus Host und Datenbank im System der Datenbank sind. Das muss halt passen.

                              Ich denke, damit kommst du aber nun erstmal weiter, hoffe ich.

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                Wagner @IobNordlicht last edited by

                                @iobnordlicht - eigentlich nicht, aber trotzdem danke... ich habe mal hier was angeklickt wegen dem "Lost connecion" - aber alles englisch und das kann ich nicht so richtig...
                                link text

                                W I 2 Replies Last reply Reply Quote 0
                                • W
                                  Wagner @Wagner last edited by Wagner

                                  @wagner - meine iobroker datenbank kann ich aber mit Window HeidiSQL bearbeiten...

                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    IobNordlicht @Wagner last edited by

                                    @wagner
                                    Dein Fehler sagt, dass es ein Rechte Problem gibt.
                                    Die Datenbank "mysql.user" enthalt die User der Datenbank mit ihren Rechten.

                                    Poste doch mal den Output von "Describe mysql.user;" damit ich sehen kann, was für Spalten dort sind.
                                    Dann baue ich dir nochmal ein SQL Statement zusammen...

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate
                                    FAQ Cloud / IOT
                                    HowTo: Node.js-Update
                                    HowTo: Backup/Restore
                                    Downloads
                                    BLOG

                                    888
                                    Online

                                    32.0k
                                    Users

                                    80.5k
                                    Topics

                                    1.3m
                                    Posts

                                    3
                                    23
                                    982
                                    Loading More Posts
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                    The ioBroker Community 2014-2023
                                    logo