Skip to content

Commit 72907d4

Browse files
author
litongjava
committed
add mysql run cmd
1 parent 306ce04 commit 72907d4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

frameworks/Java/tio-server/README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ This is the tio-server portion of a [benchmarking test suite](../) comparing a v
55
## Controller
66

77
These implementations use the tio-server's controller.
8-
* [Plaintext test source]()
9-
* [JSON test source]()
108

119
### Plaintext Test
1210

@@ -72,6 +70,19 @@ All implementations use the same URLs.
7270
http://localhost:8080/updates?queries=5
7371

7472
## Hot to run
73+
### install mysql 8
74+
- 1.please instal mysql 8.0.32,example cmd
75+
```
76+
docker run --restart=always -d --name mysql_8 --hostname mysql \
77+
-p 3306:3306 \
78+
-e 'MYSQL_ROOT_PASSWORD=robot_123456#' -e 'MYSQL_ROOT_HOST=%' -e 'MYSQL_DATABASE=hello_world' \
79+
mysql/mysql-server:8.0.32 \
80+
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --lower_case_table_names=1
81+
```
82+
- 2.create database schema hello_world
83+
- 3.create tablle,[example](sql/hello_world.sql)
84+
- 4.import data
85+
7586
### docker
7687
```
7788
docker build -t tio-server-benchmark -f tio-server.dockerfile .
@@ -81,7 +92,7 @@ The run is to specify the mysql database
8192
docker run --rm -p 8080:8080 \
8293
-e JDBC_URL="jdbc:mysql://192.168.3.9/hello_world" \
8394
-e JDBC_USER="root" \
84-
-e JDBC_PSWD="robot_123456" \
95+
-e JDBC_PSWD="robot_123456#" \
8596
tio-server-benchmark
8697
```
8798

0 commit comments

Comments
 (0)