mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-06 08:41:20 +00:00
63 lines
2.0 KiB
JSON
63 lines
2.0 KiB
JSON
{
|
|
"homepage": "https://dev.mysql.com/downloads/mysql/",
|
|
"version": "5.7.20",
|
|
"license": "GPLv2",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://dev.mysql.com/get/mysql-5.7.20-winx64.zip",
|
|
"hash": "2f7fbebac1d679a5e154b7dcb2a91970c9450ba52fe39df90df1e7dbfdcc339c",
|
|
"extract_dir": "mysql-5.7.20-winx64"
|
|
},
|
|
"32bit": {
|
|
"url": "https://dev.mysql.com/get/mysql-5.7.20-win32.zip",
|
|
"hash": "f9db20a65f1a81a3c0e1828d29fe5cb364473a0969249492596b7bc0b617870d",
|
|
"extract_dir": "mysql-5.7.20-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"
|
|
],
|
|
"persist": [
|
|
"data"
|
|
],
|
|
"post_install": "
|
|
#Initialize data directory (without generating root password)
|
|
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
|
|
",
|
|
"checkver": {
|
|
"url": "https://dev.mysql.com/downloads/mysql/",
|
|
"re": "<h1>MySQL Community Server ([\\d.]+)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://dev.mysql.com/get/mysql-$version-winx64.zip",
|
|
"extract_dir": "mysql-$version-winx64"
|
|
},
|
|
"32bit": {
|
|
"url": "https://dev.mysql.com/get/mysql-$version-win32.zip",
|
|
"extract_dir": "mysql-$version-win32"
|
|
}
|
|
}
|
|
}
|
|
}
|