'Configuring MySQL to run scripts upon start or restart

Is there a possibility or MySQL configuration that I can do such that whenever I start or restart my MySQL server , it automatically run some scripts for me.

Please help , anyone with an idea

Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source