From 8c0745137c5e9c4e8913da296b44556a9f01e4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my?= Date: Thu, 23 Mar 2017 00:38:24 +0100 Subject: [PATCH] mysql persist database content --- mysql.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mysql.json b/mysql.json index 9b2c3ebfcf..4f64dea55e 100644 --- a/mysql.json +++ b/mysql.json @@ -26,9 +26,14 @@ "bin\\mysqlslap.exe", "bin\\my_print_defaults.exe" ], + "persist": [ + "data" + ], "post_install": " #Initialize data directory (without generating root password) -mysqld --initialize-insecure +if (!(Test-Path \"$dir\\data\\auto.cnf\")) { + mysqld --initialize-insecure +} #Copy provided sample file to live file location cp $dir/my-default.ini $dir/my.ini