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

    Unable to connect to database

    Scheduled Pinned Locked Moved
    FOG Problems
    6
    6
    17.5k
    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.
    • J
      joe morris
      last edited by

      Installing FOG on laptop for testing purposes. Installed Ubuntu 11.10. Gave machine static IP. Followed instructions for “Integrating FOG into an Existing Network”. Last step when you got to [url]http://servername/fog/managment[/url] I get the following message in the web browser “Unable to connect to database” Any Suggestions?

      1 Reply Last reply Reply Quote 0
      • S
        Sk00t3r
        last edited by

        Make sure you have the password entered at the initial setup for the SQL database entered in /var/www/fog/commons/config.php

        1 Reply Last reply Reply Quote 0
        • J
          Jason Harpole
          last edited by

          I had this same problem. During the install if you put in a password when MYSQL was installed, that is where the problem is. It is simple to fix simply edit the config.php file Sk00t3r spoke of and you will see the password field is labled as

          Define (“MYSQL_PASSWORD”, “”),

          enter in the password you entered during setup ie.

          Define (“MYSQL_PASSWORD”, “your password here”),

          Once I did this it came right up for me.

          1 Reply Last reply Reply Quote 0
          • A
            afmrick
            last edited by

            If you defined a mysql password add it to [SIZE=4][FONT=Times][COLOR=#000000][B][COLOR=#003399]/opt/fog/service/etc/config.php[/COLOR][/B] and [B][COLOR=#003399]/var/www/fog/commons/config.php[/COLOR][/B][/COLOR][/FONT][/SIZE]

            1 Reply Last reply Reply Quote 0
            • D
              dft
              last edited by

              [quote=“afmrick, post: 2194, member: 417”]If you defined a mysql password add it to [SIZE=4][FONT=Times][COLOR=#000000][B][COLOR=#003399]/opt/fog/service/etc/config.php[/COLOR][/B] and [B][COLOR=#003399]/var/www/fog/commons/config.php[/COLOR][/B][/COLOR][/FONT][/SIZE][/quote]
              I have the same problem but I did not change the password, the server had been running fine up until this passed Friday.
              Any help would be great.

              1 Reply Last reply Reply Quote 0
              • J
                jose javier carmona lopez
                last edited by

                is the capacity on your hard drive is at 100% you should run this command to verify [B]df-h[/B] so if delete something to start mysql service[B] [/B]

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

                228

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project