Skip to content

Commit

Permalink
docs: update the mysql docker example in stream proxy to use mysql_na…
Browse files Browse the repository at this point in the history
…tive_password (#10439)

* Update mysql docker example to use mysql_native_password

* update the same for the zh doc
  • Loading branch information
kayx23 authored Nov 6, 2023
1 parent 1c3d064 commit 2e83f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/latest/stream-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Here is an example with MySQL:
2. Now run a mysql docker container and expose port 3306 to the host
```shell
$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=toor -p 3306:3306 -d mysql
$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=toor -p 3306:3306 -d mysql mysqld --default-authentication-plugin=mysql_native_password
# check it using a mysql client that it works
$ mysql --host=127.0.0.1 --port=3306 -u root -p
Enter password:
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/latest/stream-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ curl http://127.0.0.1:9180/apisix/admin/stream_routes/1 -H 'X-API-KEY: edd1c9f03
2. 现在运行一个 mysql docker 容器并将端口 3306 暴露给主机
```shell
$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=toor -p 3306:3306 -d mysql
$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=toor -p 3306:3306 -d mysql mysqld --default-authentication-plugin=mysql_native_password
# check it using a mysql client that it works
$ mysql --host=127.0.0.1 --port=3306 -u root -p
Enter password:
Expand Down

0 comments on commit 2e83f91

Please sign in to comment.