ScoopInstaller_Main/mysql.json
2016-06-28 07:34:28 +10:00

42 lines
1.4 KiB
JSON

{
"homepage": "https://dev.mysql.com/downloads/mysql/",
"version": "5.7.13",
"license": "GPLv2",
"architecture": {
"64bit": {
"url": "https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13-winx64.zip",
"hash": "md5:4a80ba4a81468fd848258367c8e81d76",
"extract_dir": "mysql-5.7.13-winx64"
},
"32bit": {
"url": "https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13-win32.zip",
"hash": "md5:cea41a9b2e6b0ef62746700aa85ddea3",
"extract_dir": "mysql-5.7.13-win32"
}
},
"bin": [
"bin\\mysqld.exe",
"bin\\mysql.exe",
"bin\\mysqldump.exe",
"bin\\mysqladmin.exe",
"bin\\mysqlbinlog.exe",
"bin\\mysqlcheck.exe",
"bin\\mysqlimport.exe",
"bin\\mysqlshow.exe",
"bin\\mysqlslap.exe",
"bin\\my_print_defaults.exe"
],
"post_install": "
#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 \"\" | 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
"
}