MySQL provides a script for initialiazing a new data directory for databases storage.
Unfortunately, on the noinstall zip for Windows, it is only a Perl script.
I’d like to initialize a new data directory without using Perl, since I’m building an auto-install to be launched from several machines and I want to reduce the softwares installation duty.
Is there a workaround for this script that does not require to have Perl installed ?
As stated on the MySQL doc, you can just copy the
datadir from the MySQL zip wherever you want.Then you will just need either launch
mysqldusing the--datadir=new_pathoption, or specifydatadir=new_pathin themy.ini/my.cnfyou’ll be using.