Have you made sure that all mysql components are uninstalled before you try to rerun the FOG setup? Maybe there is a pid file blocking you? I’m not sure what logs you might look at, but /var/log/syslog would be a start. Tail the log file in another terminal or console session while you try to run the installer. You can check all the mysql components installed using dpkg and grep.