Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Neuen Mandanten anlegen schlägt fehl

    Scheduled Pinned Locked Moved Betrieb
    18 Posts 6 Posters 4.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      weiss-daniel
      last edited by

      Hallo,

      ich bin die notwendigen Schritte durchgegangen. Alles ohne Fehlermeldung.
      Nun bei Anmeldeversuch kommt folgende Fehlermeldung:

      "isys_exception_database : Database connection to login@localhost:3306 failed. Possible errors: * MySQL Server not loaded. * Password or settings for mandator connection in table "isys_mandator" (system database) wrong. * Database settings wrong in configuration file: src/config.inc.php MySQL-Reports: [0]: (Extended Information: NULL)"

      Folgenden INSERT habe ich durchgeführt:
      INSERT INTO isys_mandator ( isys_mandator__id , isys_mandator__title , isys_mandator__description , isys_mandator__dir_cache ,
      isys_mandator__dir_tpl , isys_mandator__db_host , isys_mandator__db_port , isys_mandator__db_name , isys_mandator__db_user ,
      isys_mandator__db_pass , isys_mandator__sort , isys_mandator__default_lang_const , isys_mandator__default_language_short )
      VALUES (DEFAULT, 'testmandator', 'testmandator' , 'cache_testmandator', 'default', 'localhost', '3306', 'idoit_testmandator', 'root', 'root',
      '50', 'ISYS_LANGUAGE_GERMAN', 'de');

      Über Hilfe wäre ich sehr dankbar.

      MfG,
      Daniel Weiß

      1 Reply Last reply Reply Quote 0
      • _Chekov__ Offline
        _Chekov_
        last edited by

        @weiss-daniel:

        "isys_exception_database : Database connection to login@localhost:3306 failed. Possible errors: * MySQL Server not loaded. * Password or settings for mandator connection in table "isys_mandator" (system database) wrong. * Database settings wrong in configuration file: src/config.inc.php MySQL-Reports: [0]: (Extended Information: NULL)"

        Hi Daniel,

        wie der Fehler schlägt vor:

        • Läuft MySQL Server überhaupt? Mal überprüfen.
          Unter Linux die läufende Prozesse mit Hilfe von grep prüfen z.B. ps -ef | grep mysqld

        • Sind die Einstellungen richtig, bzw. MySQL Datenbank Benutzer und Passwort richtig
          eingestellt für config.inc.php Datei?

        Cheers,

        Chekov

        Chekov is using i-doit v1.6.4 PRO in production & i-doit v1.7 PRO in test

        1 Reply Last reply Reply Quote 0
        • W Offline
          weiss-daniel
          last edited by

          Hallo Chekov,

          danke für die schnelle Antwort.

          Der MySQL Server läuft. Der Fehler erscheint erst wenn ich die INSERT Befehle ausgeführt habe.
          Vorher kann ich mich ganz normal anmelden.
          Benutzer und Passwörter sind sonst überall Standardwerte vergeben. Also nichts geändert nach der Installation.

          Für weiter Tipps wäre ich dankbar.

          Grüße

          1 Reply Last reply Reply Quote 0
          • W Offline
            weiss-daniel
            last edited by

            Ich zitiert hier nochmal die Schritte die ich mit der Console in Abgleich mit der 3-Schritte-Wikianleitung gemacht habe.

            –-SCHRITT 1--- (Datenbank "test" erzeugen)
            C:\idoit\mysql5.1\bin>mysql -uroot -p
            Enter password:
            Welcome to the MySQL monitor.  Commands end with ; or \g.
            Your MySQL connection id is 18
            Server version: 5.1.30-community MySQL Community Server (GPL)

            Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

            mysql> create database test;
            Query OK, 1 row affected (0.00 sec)

            –-SCHRITT 2---  (Vorlagen-Datenbank kopieren - wird auch erfolgreich gemacht. Verzeichniss "test" ist gefüllt mit Daten)
            C:\idoit\mysql5.1\bin>mysql -uroot -p -Dtest < idoit_data.sql
            Enter password:

            –-SCHRITT 3---  (Mandator in der Hauptdatenbank eintragen)
            C:\idoit\mysql5.1\bin>mysql -uroot -p -Didoit_system
            Enter password:
            Welcome to the MySQL monitor.  Commands end with ; or \g.
            Your MySQL connection id is 49
            Server version: 5.1.30-community MySQL Community Server (GPL)

            Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

            mysql> INSERT INTO isys_mandator
            ( isys_mandator__id, isys_mandator__title ,isys_mandator__description,isys_mandator__dir_cache ,
                -> isys_mandator__dir_tpl , isys_mandator__db_host , isys_mandator__db_ port , isys_mandator__db_name , isys_mandator__db_user ,
                -> isys_mandator__db_pass , isys_mandator__sort , isys_mandator__defaul t_lang_const , isys_mandator__default_language_short )
                -> VALUES (DEFAULT, 'Testmandant', NULL , 'testcache', 'default', 'localhost
            ', '3306', 'test', 'root', 'NULL',
                -> '50', 'ISYS_LANGUAGE_ENGLISH', 'en');
            Query OK, 1 row affected (0.08 sec)

            Als User + Passwort habe ich folgende Kombinationen getestet:
            root:root
            root:NULL
            admin:admin
            admin:NULL

            Hat jedoch keine Kombination funktioniert.
            Bekomme immer die Fehlermeldung im obig genannten Thread.

            Vielen Dank für eure Hilfe!

            MfG, Daniel Weiß

            1 Reply Last reply Reply Quote 0
            • T Offline
              tesso
              last edited by

              Hat dein Benutzer admin Rechte auf die neue Mandantendatenbank? Das vergesse ich auch gern beim Anlegen der Datenbank. Welches Passwort hat der admin? Hast du das probiert? Du versucht nicht zufällig den Admin vom Frontend oder? Es muß einen SQL-User geben.

              1 Reply Last reply Reply Quote 0
              • W Offline
                weiss-daniel
                last edited by

                Der SQL-User müsste standardmäßig "root" ohne Passwort sein. So kann ich mich jedenfalls mit der Datenbank verbinden. Diesen habe ich auch getestet. Allerdings ohne Erfolg.

                1 Reply Last reply Reply Quote 0
                • _Chekov__ Offline
                  _Chekov_
                  last edited by

                  Hi Daniel,

                  wenn deine config.inc.php Datei MySQL User "root" und Passwort als "" (NULL) enthält,
                  dann sollte es gehen. Hostname sollte localhost bleiben. Wenn das was anderes ist, dann
                  musst du nochmal die Rechte korrigieren auf MySQL ebene.

                  Du kannst noch die Rechte mit folgenden GRANT kommando geben und
                  festlegen:

                  GRANT ALL ON . TO 'root'@'localhost';

                  Entweder Benutzername ist root oder admin, je nach dem was du da unter config.inc.php
                  Datei hast.

                  Cheers,

                  Chekov

                  Chekov is using i-doit v1.6.4 PRO in production & i-doit v1.7 PRO in test

                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    weiss-daniel
                    last edited by

                    Hallo Chekov

                    Danke. Langsam steig ich durch.
                    Also in der config.inc.php habe ich "root" und PW "NULL" stehen.

                    Welche Kommandos geb ich dann im INSERT Befehl ein?
                    'root', 'NULL',  oder 'root', ' '  ?

                    Bin leider noch nicht so der SQL-Kenner.

                    Danke!

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      weiss-daniel
                      last edited by

                      Hallo,

                      hat funktioniert! Vielen Dank an Alle!
                      Problem war - PW 'NULL' - Richtig: NULL. Also ein Tippfehler.

                      Weis jemand wann die geplante Oberfläche zum Mandanten anlegen eingebunden wird?

                      1 Reply Last reply Reply Quote 0
                      • dsD Offline
                        ds
                        last edited by

                        Ich glaub dein SQL-Statement ist nicht ganz richtig - er versucht mit dem passwort "NULL" zu connecten, es sollte aber doch leer sein, oder?
                        Versuch mal das hier:

                        INSERT INTO isys_mandator( isys_mandator__id, isys_mandator__title ,isys_mandator__description,isys_mandator__dir_cache , isys_mandator__dir_tpl , isys_mandator__db_host , isys_mandator__db_port , isys_mandator__db_name , isys_mandator__db_user ,   isys_mandator__db_pass , isys_mandator__sort , isys_mandator__default_lang_const , isys_mandator__default_language_short ) VALUES (DEFAULT, 'Testmandant', NULL , 'testcache', 'default', 'localhost', '3306', 'test', 'root', '',   '50', 'ISYS_LANGUAGE_ENGLISH', 'en');

                        Edit: Oops ich sollte vielleicht auch mal die 2. Seite lesen .. 🙂

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