fix mysql-setup logic