Added flush_logs and get user and pass from .my.cnf