Actually, it did work when I tried to rebuild with SSH connection and sshed manually inside. When adding a run command it did not work saying connection refused.
I think you explained the problem here - Why can't I connect to MySQL server?, though I did not quite understand how that works 