##Custom MySQL configs
If you need to customize the MySQL configuration, we provide methods to do this as outlined in our docs. Often, if people are making these changes with custom recipes, they usually follow up with a restart of MySQL via an execute call to /etc/init.d/mysql restart
, or via a 'service' resource call with the 'restart' action. Often, this is done by people not realizing that Chef’s service notification methods can be used to conditionally restart MySQL, only if the custom configuration file has actually changed. The following snippet added into your custom recipe would make sure that MySQL is only restarted if your custom config template actually changed since the last run. It also allows for you to separate out your customizations based on whether they are dynamic or not (see our main MySQL configuration doc for a