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

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

Scheduled Pinned Locked Moved Solved
Linux Problems
2
2
593
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.
  • B
    beardedfool
    last edited by Apr 15, 2020, 1:54 PM

    Does fog install set a mysql root password (as a few threads says it doesn’t)?

    The installer currently errors (trying to get it to run in a proxmox container) so doesn’t output /opt/fog/.fogsettings

    When I try to run the installer again

    * Setting up and starting MySQL...............................OK
    
       To improve the overall security the installer will create an
       unpriviledged database user account for FOG's database access.
       Please provide the database *root* user password. Be asured
       that this password will only be used while the FOG installer
       is running and won't be stored anywhere:
    
       Unable to connect to the database using the given password!
       Try again:
    
     * Setting up MySQL user and database..........................Skipped```
    
    from bash
    

    root@rmlfog:/images# mysql -u root
    ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)

    root@rmlfog:/images# mysql -u root -pfog
    ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
    root@rmlfog:/images# mysql -u root -ppassword```

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Apr 15, 2020, 5:28 PM

      @beardedfool Which Linux OS and version do you use? Older versions of FOG before 1.5.8 did run with an empty DB root password. So you find a lot of dated information on this. We were adding more security in 1.5.8 but it hat minor issues on some Linux OSes. Will provide detailed information for you when we know what you use.

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

      148

      Online

      12.0k

      Users

      17.3k

      Topics

      155.2k

      Posts
      Copyright © 2012-2024 FOG Project