This is an automated email from the ASF dual-hosted git repository.
sylviasu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 2e83f91d0 docs: update the mysql docker example in stream proxy to use
mysql_native_password (#10439)
2e83f91d0 is described below
commit 2e83f91d0798ae1ed77032d14e4a383d2e253418
Author: Traky Deng <[email protected]>
AuthorDate: Sun Nov 5 17:27:15 2023 -0800
docs: update the mysql docker example in stream proxy to use
mysql_native_password (#10439)
* Update mysql docker example to use mysql_native_password
* update the same for the zh doc
---
docs/en/latest/stream-proxy.md | 2 +-
docs/zh/latest/stream-proxy.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/en/latest/stream-proxy.md b/docs/en/latest/stream-proxy.md
index 9354c96b2..937a1a5af 100644
--- a/docs/en/latest/stream-proxy.md
+++ b/docs/en/latest/stream-proxy.md
@@ -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:
diff --git a/docs/zh/latest/stream-proxy.md b/docs/zh/latest/stream-proxy.md
index 22a17be6c..1c2a37c42 100644
--- a/docs/zh/latest/stream-proxy.md
+++ b/docs/zh/latest/stream-proxy.md
@@ -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: