Exit when can not connnect to mysql

change the store  directory