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

    Install fog, load up webpage, "Unable to connect to Database"

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    4
    2.1k
    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.
    • T
      Toast
      last edited by

      I install Fog and get this sad message. I know the issue is mysql not starting, attached is the log from /var/log/mysql/errror.log

      Below is some more wonderful output.

      toast@bento-13:~/opt/fog_0.33b/bin$ sudo mysql -u root -h bento-13 fog
      ERROR 2003 (HY000): Can’t connect to MySQL server on ‘bento-13’ (111)

      Currently running 13.10 in a VM, hopefully that doesn’t matter. I get the same connection error when using my regular system as well.

      [url=“/_imported_xf_attachments/0/675_error.txt?:”]error.txt[/url]

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

        If bento-13 is what you’re logged on as AND this is your fog server, you shouldn’t be trying to load from the hostname.

        Try logging into mysql with:
        [code]mysql -u root fog[/code]

        If you set a password, you’ll likely need:
        [code]mysql -u root -p fog[/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
        • T
          Toast
          last edited by

          Nope still getting the same error of “Unable to connect to Database”
          I know mysql works because the “It works!” default page loads up just fine.

          Gonna try Debian 7.4 and 12.04 next, I hear great things about them and eventually, 14.04. Good thing these are on VMs. Consider this solved for now, not interested in wasting time for problems for a distro that isn’t the LTS.

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

            Toast,

            mysql appears to NOT be working in your situation.

            How do you know mysql works? The “It works!” page is not a mysql issue, that’s telling you apache is working fine. The “Unable to connect to Database” shows you that the DATABASE is actually the issue.

            Did you try the commands I gave you and it’s not working?

            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