• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Database Schema Installer/ Updater

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    14
    4.3k
    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.
    • Tom ElliottT
      Tom Elliott
      last edited by

      Does your database have a password set for it?

      This error will present any time there’s an issue with connecting to the db. The information given there is just a quick, check these types of things too, message. Are the credentials correct?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • T
        templink
        last edited by

        I’ve never changed the credentials. So as far as I know, they are correct. My database has no password.

        Tom ElliottT 1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @templink
          last edited by

          @templink Is there a password defined for the database in the config.class.php file?

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 1
          • Wayne WorkmanW
            Wayne Workman @templink
            last edited by Wayne Workman

            @templink said in Database Schema Installer/ Updater:

            I looked in the config.class.php file, but couldn’t figure out what should be changed.

            Nothing should be changed in that file, make your changes inside of /opt/fog/.fogsettings so that they are permanent.

            Can you access the database with any of these?

            mysql -D fog
            mysql -h localhost -D fog
            mysql -h 127.0.0.1 -D fog
            mysql -h localhost -D fog -u root -p
            mysql -h 127.0.0.1 -D fog -u root -p
            

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            T 1 Reply Last reply Reply Quote 0
            • T
              templink @Wayne Workman
              last edited by

              @Wayne-Workman
              I was able to successfully logon to the database using the first, second and fourth method you provided. Both ways using 127.0.0.1 failed though.

              Tom ElliottT 1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @templink
                last edited by

                @templink If you edit the config.class.php and change the
                define('DATABASE_HOST', '127.0.0.1');

                To read as:
                define('DATABASE_HOST', 'localhost');

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                T 1 Reply Last reply Reply Quote 0
                • T
                  templink @Tom Elliott
                  last edited by

                  @Tom-Elliott
                  It read:
                  define(‘DATABASE_HOST’, ‘p:localhost’);

                  I changed it to:
                  define(DATABASE_HOST’, ‘localhost’);

                  and rebooted, but the problem persists.

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    Does your config.class.php file have a defined definition for the DATABASE_PASSWORD field?

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      templink @Tom Elliott
                      last edited by

                      @Tom-Elliott
                      db settings from my config.class.php file:

                      private static function _dbSettings()
                      {
                      define(‘DATABASE_TYPE’, ‘mysql’); // mysql or oracle
                      define(‘DATABASE_HOST’, ‘localhost’);
                      define(‘DATABASE_NAME’, ‘fog’);
                      define(‘DATABASE_USERNAME’, ‘root’);
                      define(‘DATABASE_PASSWORD’, “”);
                      }

                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @templink
                        last edited by

                        @templink

                        What happens if you run:
                        mysql -u root fog as a “non-root” user?

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          templink @Tom Elliott
                          last edited by

                          @Tom-Elliott

                          ubuntu@fogserver:~$ mysql -u root fog
                          ERROR 1698 (28000): Access denied for user ‘root’@‘localhost’

                          Tom ElliottT 1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott @templink
                            last edited by

                            @templink Please run:

                            sudo mysql -u root
                            Within mysql please run:

                            ALTER USER 'root'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY '';
                            ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
                            exit;
                            

                            Then you should be good to go.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            T 1 Reply Last reply Reply Quote 2
                            • T
                              templink @Tom Elliott
                              last edited by

                              @Tom-Elliott

                              response was
                              Query OK, 0 rows affected (0.00 sec)

                              It worked! Big thanks! I’m up and running in the browser again.

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

                              231

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project