Exclude mysql* in /etc/yum.conf instead of /etc/yum.repos.d/CentOS-Base.repo.