Adding my.cnf file and making sure mysql owns the right dirs