Edit post installation script of MySQL bucket (#1901)

* 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
This commit is contained in:
gnsngck 2017-12-12 21:11:18 +09:00 committed by Richard Kuhnt
parent 00f3fcc257
commit 20290bf689

View File

@ -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/",