From 20290bf689177aae370d7162a680ddb98da3d5e3 Mon Sep 17 00:00:00 2001 From: gnsngck Date: Tue, 12 Dec 2017 21:11:18 +0900 Subject: [PATCH] Edit post installation script of MySQL bucket (#1901) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Edit post installation script of MySQL bucket * Since MySQL 5.7.18, my-default file is no longer distributed in package so we can't the line to produce my.ini by copying my-default file. * In Powershell, Out-file seems to make Byte Order Mark automatically and this occurs following error so this is a temporary commit which changes UTF-8 to ASCII doesn't make BOM. mysql: [ERROR] Found option without preceding group in config file …\scoop\apps\mysql\current\my.ini at line 1! mysql: [ERROR] Fatal error in defaults handling. Program aborted! * mysql: fix whitespace --- mysql.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mysql.json b/mysql.json index 3e23d983e1..7dabf89f84 100644 --- a/mysql.json +++ b/mysql.json @@ -34,14 +34,10 @@ 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 - #Output client configuration to my.ini file so no username is required when connecting -echo \"\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append -echo \"[client]\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append -echo \"user=root\" | out-file \"$dir/my.ini\" -Encoding UTF8 -Append +echo \"\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append +echo \"[client]\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append +echo \"user=root\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append ", "checkver": { "url": "https://dev.mysql.com/downloads/mysql/",