-
-
Notifications
You must be signed in to change notification settings - Fork 993
/
Copy pathmysql.json
87 lines (87 loc) · 3.28 KB
/
mysql.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"version": "9.2.0",
"description": "The world's most popular open-source database",
"homepage": "https://dev.mysql.com/downloads/mysql/#info-tab",
"license": "GPL-2.0-only",
"notes": [
"Run 'mysqld --standalone' or 'mysqld --console' to start the Database,",
"or run following command as administrator to register MySQL as a service. See: https://dev.mysql.com/doc/refman/en/windows-start-service.html",
"",
"mysqld --install MySQL --defaults-file=\"$dir\\my.ini\"",
"",
"To stop and/or delete the Service run 'sc stop MySQL' and 'sc delete MySQL'."
],
"suggest": {
"vcredist": "extras/vcredist2022",
"mysql-shell": "mysql-shell"
},
"architecture": {
"64bit": {
"url": "https://dev.mysql.com/get/Downloads/MySQL-9.2/mysql-9.2.0-winx64.msi",
"hash": "md5:25b9094c1440d625176a576b5de33778",
"extract_dir": "PFiles64\\MySQL\\MySQL Server 9.2"
}
},
"pre_install": [
"$ini = \"$dir\\my.ini\"",
"if (!(Test-Path \"$ini\")) {",
" # Using $dir instead of $persist_dir, causes this error:",
" # [ERROR] [MY-010187] [Server] Could not open file '~/scoop/apps/mysql/current/data/host.err' for error logging: Permission denied",
" Add-Content -Path \"$ini\" -Value \"[mysqld]`ndatadir=$($persist_dir -replace '\\\\', '/')/data\" -Encoding Ascii",
" # Set username so it's not required when connecting",
" Add-Content -Path \"$ini\" -Value \"[client]`nuser=root\" -Encoding Ascii",
"}"
],
"post_install": [
"if (!(Test-Path \"$dir\\data\\auto.cnf\")) {",
" warn 'Initializing data directory ...'",
" Invoke-ExternalCommand -FilePath \"$dir\\bin\\mysqld.exe\" -ArgumentList '--initialize-insecure' | Out-Null",
" warn 'Database has been initialized (username: root, password: <blank>)'",
"}"
],
"bin": [
"bin\\ibd2sdi.exe",
"bin\\innochecksum.exe",
"bin\\myisamchk.exe",
"bin\\myisamlog.exe",
"bin\\myisampack.exe",
"bin\\myisam_ftdump.exe",
"bin\\mysql.exe",
"bin\\mysqladmin.exe",
"bin\\mysqlbinlog.exe",
"bin\\mysqlcheck.exe",
"bin\\mysqld.exe",
"bin\\mysqldump.exe",
"bin\\mysqlimport.exe",
"bin\\mysqlshow.exe",
"bin\\mysqlslap.exe",
"bin\\mysql_config_editor.exe",
"bin\\mysql_secure_installation.exe",
"bin\\mysql_tzinfo_to_sql.exe",
"bin\\my_print_defaults.exe",
"bin\\perror.exe"
],
"shortcuts": [
[
"bin\\mysql_configurator.exe",
"MySQL Configurator"
]
],
"persist": [
"data",
"my.ini"
],
"checkver": "MySQL Community Server ([\\d.]+)",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://dev.mysql.com/get/Downloads/MySQL-$majorVersion.$minorVersion/mysql-$version-winx64.msi",
"hash": {
"url": "https://dev.mysql.com/downloads/mysql/",
"regex": "(?s)$basename.*?$md5"
},
"extract_dir": "PFiles64\\MySQL\\MySQL Server $majorVersion.$minorVersion"
}
}
}
}