From f990b2e6f228cbf658d7edb1816c1771777e1418 Mon Sep 17 00:00:00 2001 From: MPLew-is Date: Wed, 23 Mar 2016 04:58:39 -0400 Subject: [PATCH] Clean up post-install script Fix minor errors that came up in testing Add documentation --- mysql.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mysql.json b/mysql.json index c4ac769667..9e6c79afd4 100644 --- a/mysql.json +++ b/mysql.json @@ -26,8 +26,14 @@ "bin\\my_print_defaults.exe" ], "post_install": " -$dir/bin/mysqld --initialize-insecure +#Initialize data directory (without generating root password) +mysqld --initialize-insecure + +#Copy provided sample file to live file location cp $dir/my-default.ini $dir/my.ini + +#Output client configuration to my.ini file so no username is required when connecting +echo \"\" >> $dir/my.ini echo \"[client]\" >> $dir/my.ini echo \"user=root\" >> $dir/my.ini "