How to init mysql service from dev.nix file?

I can install the MySQL service, but I cannot run it. Does anyone know how to do it?"

Have you taken a look at our existing MySQL template’s dev.nix files for ideas on how to do this?

The MySQL service will save the data at .idx/.data/mysql, if by any chance the MySQL package that you chose won’t start, it’s because of some incompatibility.

Rename the .idx/.data/mysql to something else, access to your workspace again, so the service starts automatically and it will initialize the MySQL folder once again.

If you want to keep the data of the database then export it, so you can recover it in the new package.

thanks @kirupa and @alice for your resp, now the problem is solved
I deleted all folders in .idx/ except the dev.nix file
and mysql service is working normally again