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

    Fog - Can't access database after install of 12.04

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    9
    4.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
      Jay
      last edited by

      I installed the update to 12.04 and after the install completes successfully I get a message “Unable to connect to database”. I was not prompted to install or update the database.

      1 Reply Last reply Reply Quote 0
      • J
        jester805
        last edited by

        I have the same issue on Ubuntu 11.10.

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

          That is the error that one usually sees when fog is trying to use the wrong mysql password.

          Try opening a terminal window and logging in to the mysql db manually:
          [code] sudo mysql -u root -p [/code]
          If you get in, check to make sure fog has the correct password in /var/www/fog/commons/config.php. It is the ‘DATABASE_PASSWORD’ variable.

          –astrouga

          1 Reply Last reply Reply Quote 0
          • J
            Jay
            last edited by

            [quote=“jester805, post: 3575, member: 1167”]I have the same issue on Ubuntu 11.10.[/quote]
            It was a problem with the password I had set up for MySQL on the install. I went into /var/www/fog/commons/config.php and set the password for DATABASE_PASSWORD . You need to do it with root credentials - [FONT=Consolas]sudo mysql -u root -p. [/FONT]After changing the password I was able to access fog via [URL=‘http://fog/fog/management’]http://“IP address of server”/fog/management[/URL]

            1 Reply Last reply Reply Quote 0
            • J
              jester805
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • J
                jester805
                last edited by

                [quote=“Jay, post: 3580, member: 1085”]It was a problem with the password I had set up for MySQL on the install. I went into /var/www/fog/commons/config.php and set the password for DATABASE_PASSWORD . You need to do it with root credentials - [FONT=Consolas]sudo mysql -u root -p. [/FONT]After changing the password I was able to access fog via [URL=‘http://fog/fog/management’]http://“IP address of server”/fog/management[/URL][/quote]

                I think you were correct. I got that issue fixed, but now I’m getting this error message:
                [FONT=Ubuntu][COLOR=#333333][B]Database error: (ID# 15-0)[/B][/COLOR][/FONT]
                [FONT=Ubuntu][COLOR=#333333][B]Database Error: [/B][/COLOR][/FONT]
                [COLOR=#333333][B]Duplicate column name ‘taskBPM’[/B][/COLOR]
                [COLOR=#333333] [/COLOR]
                [COLOR=#333333] [/COLOR]

                1 Reply Last reply Reply Quote 0
                • I
                  iradmanson
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • A
                    astrouga
                    last edited by

                    Got a follow-up e-mail message about a post here, but the post is not showing. Odd. Anyway, some asked:

                    [quote]
                    This sounds stupid, but I am new…
                    How or what commands do i use to get to “/var/www/fog/commons/config.php” once i go here: sudo mysql -u root -p?
                    [/quote]

                    Sorry, I should have been more clear. You don’t need to use the “sudo mysql -u root -p”. I just added that because it is an easy way to verify that you know the mysql password. If you get in, then you can just exit mysql. You need to put that password in /var/www/fog/commons/config.php. It is the ‘DATABASE_PASSWORD’ variable, if I recall correctly.

                    Just type “sudo vi /var/www/fog/commons/config.php” to edit the file and insert your mysql password. Some people hate vi, so you could substitute vi in the command above with ‘gedit’. That will give you a graphical editor in a new window. Just insert the mysql password and save the file. Then try to open the WEBUI again.

                    Let us know if that works.

                    1 Reply Last reply Reply Quote 0
                    • C
                      Cliff Titus
                      last edited by

                      Thanks for this thread guys! I think I mistakenly set my MySQL password during install of FOG 0.32 to an Ubuntu 12.4 LTS build, which was causing this error for me. After changing the MYSQL_PASSWORD line in the config.php file to what I set, I was able to log into my install. 🙂

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

                      184

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project