mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-07 17:21:20 +00:00
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:
parent
00f3fcc257
commit
20290bf689
10
mysql.json
10
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/",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user