tokers commented on issue #8591: URL: https://github.com/apache/apisix/issues/8591#issuecomment-1374392561
> Hello, > > We try to test the stream proxy, and we have exactly the same problem. > > I just try to do the example in : > > https://apisix.apache.org/docs/apisix/stream-proxy/#more-route-match-options > > But i stil have the same error when I try to connect to the mysql database with stream : > > root@det1authent06:~/apisix/apisix-docker-master/test# mysql --host=127.0.0.10 --port=9101 -u root -p > > Enter password: > > ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 > > root@det1authent06:~/apisix/apisix-docker-master/test# mysql --host=127.0.0.10 --port=3306 -u root -p > > Enter password: > > Welcome to the MySQL monitor. Commands end with ; or \g. > > Your MySQL connection id is 17 > > Server version: 8.0.31 MySQL Community Server - GPL > > > > Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. > > > > Oracle is a registered trademark of Oracle Corporation and/or its > > affiliates. Other names may be trademarks of their respective > > owners. > > > > Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. > > > > mysql> > > > > It is very strange, my route is like in the exemple : > > > > curl http://127.0.0.1:9180/apisix/admin/stream_routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' > > { > > "server_addr": "127.0.0.10", > > "server_port": 9101, > > "upstream": { > > "nodes": { > > "127.0.0.1:3306": 1 > > }, > > "type": "roundrobin" > > } > > }' > > and i had the option in the config.yml : > > apisix: > > node_listen: 9080 # APISIX listening port > > enable_ipv6: false > > > > enable_control: true > > control: > > ip: "0.0.0.0" > > port: 9092 > > > > stream_proxy: # TCP/UDP proxy > > tcp: # TCP proxy address list > > - 9100 # by default uses 0.0.0.0 > > - "127.0.0.10:9101" > > udpp: # TCP proxy address list > > - 9100 # by default uses 0.0.0.0 > > - "127.0.0.10:9101" > > > > what can be the problem ? > > > > Which error occurred in your case? I didn't read related error messages from your reply. -- 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]
