From 3841c418c8f7340ef02539a794da4d7d1b11d383 Mon Sep 17 00:00:00 2001 From: MPLew-is Date: Wed, 23 Mar 2016 04:36:25 -0400 Subject: [PATCH] Add post-install script to initialize data and configuration --- mysql.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mysql.json b/mysql.json index 65564be151..c4ac769667 100644 --- a/mysql.json +++ b/mysql.json @@ -24,5 +24,11 @@ "bin\\mysqlshow.exe", "bin\\mysqlslap.exe", "bin\\my_print_defaults.exe" - ] + ], + "post_install": " +$dir/bin/mysqld --initialize-insecure +cp $dir/my-default.ini $dir/my.ini +echo \"[client]\" >> $dir/my.ini +echo \"user=root\" >> $dir/my.ini +" }