Skip to content

Commit a75db17

Browse files
authored
Merge pull request #73 from pj8/mysql-8.0.28
Add mysql 8.0.28
2 parents 7d8acc4 + 69ea134 commit a75db17

File tree

3 files changed

+103
-6
lines changed

3 files changed

+103
-6
lines changed

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,15 @@ cd dbdb
5151

5252
### Supported MySQL Versions
5353

54-
- 5.7.31 x86_64
55-
- 8.0.23 x86_64
56-
- 8.0.30 x86_64
57-
- 8.0.41 arm64
58-
- 8.4.4 arm64
59-
- 9.2.0 arm64
54+
- x86_64
55+
- 5.7.31 (x86_64)
56+
- 8.0.23 (x86_64)
57+
- 8.0.30 (x86_64)
58+
- arm64
59+
- 8.0.28 (arm64)
60+
- 8.0.41 (arm64)
61+
- 8.4.4 (arm64)
62+
- 9.2.0 (arm64)
6063

6164
</div></details>
6265

download-readme.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
```bash
2+
# MySQL
3+
4+
# - macOS ARM
5+
# - https://dev.mysql.com/downloads/mysql/
6+
# - Select `macOS`
7+
# - Select `macOS 15 (ARM, 64-bit)`
8+
# - Select `Compressed TAR Archive`
9+
# - e.g.
10+
11+
## 8.0.28
12+
major=8
13+
minor=0
14+
patch=28
15+
osVer=macos11
16+
version=$major.$minor.$patch
17+
url=https://dev.mysql.com/get/Downloads/MySQL-$major.$minor/mysql-$version-$osVer-arm64.tar.gz
18+
wget -O mysql-$version-macos.tar.gz "$url"
19+
20+
## 8.0.40
21+
major=8
22+
minor=0
23+
patch=40
24+
osVer=macos15
25+
version=$major.$minor.$patch
26+
url=https://dev.mysql.com/get/Downloads/MySQL-$major.$minor/mysql-$version-$osVer-arm64.tar.gz
27+
wget -O mysql-$version-macos.tar.gz "$url"
28+
## 8.4.4
29+
major=8
30+
minor=4
31+
patch=4
32+
osVer=macos15
33+
version=$major.$minor.$patch
34+
url=https://dev.mysql.com/get/Downloads/MySQL-$major.$minor/mysql-$version-$osVer-arm64.tar.gz
35+
wget -O mysql-$version-macos.tar.gz "$url"
36+
## 9.2.0
37+
major=9
38+
minor=2
39+
patch=0
40+
osVer=macos15
41+
version=$major.$minor.$patch
42+
url=https://dev.mysql.com/get/Downloads/MySQL-$major.$minor/mysql-$version-$osVer-arm64.tar.gz
43+
wget -O mysql-$version-macos.tar.gz "$url"
44+
```

tests/mysql-8.0.28.sh

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
4+
. ../lib/functions.sh
5+
6+
type=mysql
7+
version=8.0.28
8+
9+
cd ../$type/..
10+
11+
date=$(date +%Y%m%d%H%M%S)
12+
md5="md5"
13+
[ "$(getOS)" = "linux" ] && md5="md5sum"
14+
hash=$(echo "dbdb-$date" | $md5 | cut -d ' ' -f 1)
15+
16+
echo "# Test create"
17+
./$type/create.sh dbdb-test-$hash $version random
18+
echo "# Test port"
19+
./$type/port.sh dbdb-test-$hash
20+
echo "# Test start"
21+
./$type/start.sh dbdb-test-$hash
22+
echo "# Test status"
23+
./$type/status.sh dbdb-test-$hash
24+
echo "# Test restart"
25+
./$type/restart.sh dbdb-test-$hash
26+
echo "# Test stop"
27+
./$type/stop.sh dbdb-test-$hash
28+
echo "# Test delete"
29+
./$type/delete.sh dbdb-test-$hash
30+
31+
echo "# Test create"
32+
./$type/create.sh -f json dbdb-test-$hash $version random | jq
33+
echo "# Test port"
34+
./$type/port.sh -f json dbdb-test-$hash | jq
35+
echo "# Test start"
36+
./$type/start.sh -f json dbdb-test-$hash | jq
37+
echo "# Test status"
38+
./$type/status.sh -f json dbdb-test-$hash | jq
39+
echo "# Test restart"
40+
./$type/restart.sh -f json dbdb-test-$hash | jq
41+
echo "# Test stop"
42+
./$type/stop.sh -f json dbdb-test-$hash | jq
43+
echo "# Test delete"
44+
./$type/delete.sh -f json dbdb-test-$hash | jq
45+
46+
./dbdb.sh
47+
./$type/create-start.sh -f json dbdb-test-$hash $version random | jq
48+
./dbdb.sh -f json | jq
49+
./$type/delete.sh dbdb-test-$hash
50+
./dbdb.sh

0 commit comments

Comments
 (0)