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.18",
|
|
"license": "GPLv2",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://dev.mysql.com/get/mysql-5.7.18-winx64.zip",
|
|
"hash": "6a3b2d070200ae4e29f8a08aceb1c76cca9beccb037de4f5ab120d657e781353",
|
|
"extract_dir": "mysql-5.7.18-winx64"
|
|
},
|
|
"32bit": {
|
|
"url": "https://dev.mysql.com/get/mysql-5.7.18-win32.zip",
|
|
"hash": "a4313a35827477264479112040f029d34798ccf010b40ceb85c060aacc925039",
|
|
"extract_dir": "mysql-5.7.18-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"
|
|
}
|
|
}
|
|
}
|
|
}
|