After editing the configuration file, save your changes and close the editor. To apply the changes, you will need to restart the MySQL server. The command to restart MySQL varies depending on your system. Restarting your server will temporarily disrupt database access, so plan this step during off-peak hours.
Post-edit, most changes require restarting the MySQL server to become active. Yet, some parameters are dynamic, allowing on-the-fly adjustments with commands like
SET GLOBAL max_connections = 500;
Always verify which settings are dynamic to avoid unnecessary restarts.