I need to restore my fog server, but I don't know the web gui password

I need to recover a fog server that is being used to build several machines. The past operator however has left without leaving passwords to the web ui. I have recovered into the CLI, and have attempted to run ‘mysql -p fog’ but I receive ‘ERROR 1045’ Access denied for user ‘root’@‘localhost’ (using password: YES)
as well as ‘mysql -p fog’ with similar results (except a NO).

@kyletmanel The error you posted says you’re not using a password. You should be providing a password if one is set. The command to access MySQL when a password is set is mysql -u root -p, so any instructions you see that say to enter into mysql via the command mysql, you would instead use mysql -u root -p

ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)
There is a password located in the /opt/fog/.fogsettings file, though I am unclear how to use this to access the database.

And, if there’s a db password set, you might find it in the file /opt/fog/.fogsettings but this would only be there for newer fog versions. you could look inside of config.class.php for a db pass as well. You can search for that file with find /var/www | grep config.class.php