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

    MySQL Access denied for user 'root'@'localhost' (using password: NO)

    Scheduled Pinned Locked Moved
    Linux Problems
    2
    2
    805
    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.
    • Z
      zaccx32
      last edited by

      Hello!
      I am trying to reset the encryption data for all of our hosts and the web console will not let me add all hosts into a group so I am attempting to do this with MySQL however I cannot access it and keep getting the following: ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO). I looked through old posts and online and am not sure how to access it. We are currently on CentOS 6.9 with FOG 1.5.9. Any suggestions? Thanks!

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @zaccx32 Find the database information in /var/www/html/fog/lib/fog/config.class.php - with FOG 1.5.9 the database user is called fogmaster instead of root that was used in earlier versions. So to login you run this command on the console:

        mysql -u fogmaster -p
        ...
        

        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

        162

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project