Import mysql dump file on startup

Tags: #<Tag:0x00007f326b825f60> #<Tag:0x00007f326b825e98> #<Tag:0x00007f326b825d80> #<Tag:0x00007f326b825c90>

Hello, i have a mysql dump file with statements to create tables and insert data and i need to run this script when HA starts to update some information cards. How i can configure this process? I need to create a phyton script to do it?

Other question, where i can find an example to get info about some sensors when data changed to insert on a table? Thanks