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

Database connection unavailable when first installing fog server

Scheduled Pinned Locked Moved Solved
Linux Problems
2
8
505
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
    weidongyan
    last edited by Jul 30, 2019, 4:04 PM

    Hi team, I just installed Ubuntu 18 and trying to install fog server. And the installation was getting well until these command appeared:
    You still need to install/update your database schema.
    This can be done by opening a web browser and going to: MyIP/fog/management
    Press [Enter] key when database is updated/installed.

    But when I opened my browser and entered the address, it said database connection unavailable. And I tried the method in the article.

    But when I entered the mysql with root, I came to MariaDB instead of mysql. And I could not run that command because of SQL syntax( I think maybe there are some differences between MariaDB and MySQL)

    So what should I do to finish installing fog server?

    1 Reply Last reply Reply Quote 0
    • W
      weidongyan
      last edited by Jul 30, 2019, 4:08 PM

      This is image that I took.
      https://drive.google.com/file/d/1Ov4O9qw32CmGKSzV7DP7SSt_XdwolAaf/view?usp=drivesdk

      1 Reply Last reply Reply Quote 0
      • W
        weidongyan
        last edited by Jul 30, 2019, 4:14 PM

        And I set up mysql password while installing fog server

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Jul 30, 2019, 4:22 PM

          @weidongyan Unfortunately the installer script has an issue. When you tell it to set a password for the database it will try to but fails. So it’s still running with an empty password. But in the configs it holds the password you have told it.

          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
          • S
            Sebastian Roth Moderator
            last edited by Sebastian Roth Jul 30, 2019, 10:26 AM Jul 30, 2019, 4:25 PM

            @weidongyan Try the following commands on your FOG server/mysql/mariadb console:

            shell> mysql -u root -p
            Password:
            ...
            mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY "your-password";
            ...
            mysql> FLUSH PRIVILEGES;
            ...
            mysql> QUIT
            

            When logging into the mysql/mariadb command line just hit ENTER for an empty password. The markers shell> and mysql> are just meant to show you at which command line interface you are. Don’t type those.

            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

            W 1 Reply Last reply Jul 30, 2019, 4:36 PM Reply Quote 0
            • W
              weidongyan @Sebastian Roth
              last edited by Jul 30, 2019, 4:36 PM

              @Sebastian-Roth Hi Sebastian, when I entered “mysql -u root -p”, I entered the password and I got the error.
              ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Jul 30, 2019, 4:53 PM

                @weidongyan As I said in the post before: When logging into the mysql/mariadb command line just hit ENTER for an empty password.

                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

                W 1 Reply Last reply Jul 30, 2019, 5:49 PM Reply Quote 0
                • W
                  weidongyan @Sebastian Roth
                  last edited by Jul 30, 2019, 5:49 PM

                  @Sebastian-Roth It works!!! Thank you.

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

                  171

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project