How to exclude package from update on CentOS

Open /etc/yum.conf configuration file and use exclude parameter in the main section.

exclude=mysql*