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

    Unable to connect to database

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    3
    3.7k
    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.
    • S
      sushant jangale
      last edited by

      Hi Everyone,

      i had problem with undionly.kpxe, so i tried Chainloading PXE to iPXE using pxelinux.0
      Now i have problem, when i open website , i am getting message “unable to connect to database”

      I am using fog 1.1.0 installed on ubuntu 14.

      [SIZE=6][B] [/B][/SIZE]

      1 Reply Last reply Reply Quote 0
      • Jaymes DriverJ
        Jaymes Driver Developer
        last edited by

        Did you verify that Mysql was running?

        try this:
        [code]
        sudo service mysql restart[/code]

        WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

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

          Also,

          Make sure your connecting to the proper database. The file /var/www/fog/lib/fog/Config.class.php should have only 4 lines that really deal with connecting to the database server. They fall under the method db_settings.

          The major ones to be aware of are:
          DATABASE_HOST
          DATABASE_USERNAME
          DATABASE_PASSWORD

          Make sure these values are set correctly. Also verify the DATABASE_NAME is set correctly pertaining to your database (default is fog)

          The USERNAME for a Server is typically root

          The HOST for a server is typically 127.0.0.1 or localhost

          The password is whatever you set during install time if you set one. If not it will most likely be “” or ‘’

          If you’re not connecting to 127.0.0.1/localhost and actually connecting to an IP address of your fog server (e.g. 10.59.32.10) Then chances are, i’m going to guess here, you’re running ubuntu or debian derivative of some sort? Make sure the /etc/mysql/my.cnf has a commented bind-address line and if you have to change this line to make it commented (make it look like #bind-address), restart the mysql service.[code]sudo service mysql restart[/code]

          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
          • 1 / 1
          • First post
            Last post

          163

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project