Skip to content

stream proxy doesn't work (MySQL) #5790

Answered by davidwhf
davidwhf asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @davidwhf, I just helped to format your codes by using Markdown Code Quote 😄

Back to your question, please have a look at this PR https://github.com/apache/apisix/pull/5793/files, let me know if it works.

Thks for your reply. My apisix runs in docker. The best choice for me is using server port,not remote_addr ,or server_addr.Which is setted in config.yaml. It's working now.

curl http://127.0.0.1:19080/apisix/admin/stream_routes/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
    "server_port": 19306,
    "upstream": {
        "nodes": {
            "10.0.16.9:3306":1
        },
        "type": "roundrobin"
    }
}'

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@juzhiyuan
Comment options

@juzhiyuan
Comment options

Answer selected by davidwhf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants