When i was flushing my localhost I was getting an error saying could not connect to the db trying to use my remote connection string. It turns out that because I had a file remoteCopy_of_configure.php that SS was trying to "compile" that and use it a the connection. I changed the name to _configureLocal.php and SS no longer tries to use it.
Is there a better way to sync remote and local?