now the mysql uses config file to choose database and hostip.