The data dir is not fully compatible across various mysql versions, after switching the mysql version in laragon gui, the data dir may be corrupted.

I try to assign different dir for different mysql versions in my.in, but it's overwrite to default data dir every time I start laragon.

My suggestion is place the data dir under mysql version.

For example, I have 2 verison installed

laragon\bin\mysql\mysql-5.5.62-winx64
laragon\bin\mysql\mysql-5.7.24-winx64

will place data dir in
laragon\data\mysql\mysql-5.5.62-winx64\data
laragon\data\mysql\mysql-5.7.24-winx64\data