fix mysql bug after reboot; force to use https while browsing tomcat