Removed user check in order to write .my.cnf and add restrictive permissions to .my.cnf