MySQL Server (mysqld) initialization # mysqld -defaults-file= -initialize-insecure c. Change the mysql.exe path as per your MySQL server version and install directory. cmd /K “C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe” -uroot -ppassword. Add the following command to the mysql.bat file.
Create a text file and name it as mysql.bat.