I need to restore my fog server, but I don't know the web gui password
-
if you have root access to the server AND you’re on fog trunk, you can follow steps here:
https://wiki.fogproject.org/wiki/index.php?title=Password_CentralAnd, if you’re not on FOG Trunk, that’ll at least point you in the right direction.
-
fog@fogserv:/$ mysql
ERROR 1045 (28000): Access denied for user ‘fog’@‘localhost’ (using password: NO) -
@kyletmanel You need to become root first.
sudo -i
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 withfind /var/www | grep config.class.php
-
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. -
@kyletmanel the db password is labeled as
snmysqlpass=
you would use it like:
mysql -u root -p
then hit enter, and supply the password. -
root@fogserv:/# mysql
ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO) -
Sorry, that was after the first command in the link that was provided ‘mysql’
-
@kyletmanel So… back in business now?
-
@Wayne-Workman
Not as yet. I can’t access the mysql utility as it provides error 1045 when I attempt to access the application. -
@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 commandmysql
, you would instead usemysql -u root -p