Easy way to test mysql initialscript?

Hi,

Is there an easy way to run mysql initialscript at each build (in order to tune up a nixos configuration)?

Currently I’m creating the file /var/lib/mysql/mysql_init each time, but I’m wondering if there’s a more convienent way.