monkeyDluffy6017 commented on issue #8591:
URL: https://github.com/apache/apisix/issues/8591#issuecomment-1373082332

   ```
   curl http://127.0.0.1:9180/apisix/admin/stream_routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "server_addr": "192.168.3.73",
       "server_port": 9006,
       "upstream": {
           "nodes": {
               "192.168.3.73:3306": 1
           },
           "type": "roundrobin"
       }
   }'
   
   mysql --host=192.168.3.73 --port=9006 -u root -p
   Enter password:
   Welcome to the MySQL monitor.  Commands end with ; or \g.
   Your MySQL connection id is 12
   Server version: 8.0.31 MySQL Community Server - GPL
   ```
   @ffjiang666 I tested with your example, and it worked,could you try to use 
the mysql in our example 
   https://apisix.apache.org/docs/apisix/stream-proxy/#more-route-match-options
   
   ```
   docker run --name mysql -e MYSQL_ROOT_PASSWORD=toor -p 3306:3306 -d mysql
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to