且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用带有3306端口的XDevAPI连接器将mysql连接到节点js

更新时间:2023-02-06 21:55:44

端口3306默认为经典的MySQL Wire Protocol.用于Node.js的MySQL X DevAPI Connector仅支持X协议,该协议由X插件实现(默认在端口33060上实现).

Port 3306 defaults to the classic MySQL Wire Protocol. The MySQL X DevAPI Connector for Node.js only supports the X Protocol, which is implemented by the X Plugin (by default on port 33060).

您可以通过更新mysqlx_port服务器变量或在启动服务器时使用--mysqlx-port=选项来更改此设置.如果要在端口3306上使用X协议,则在启动服务器时还必须更新port变量或使用--port=选项使用其他值.

You can change this by updating the mysqlx_port server variable or using the --mysqlx-port= option when starting the server. If you want to use the X Protocol on port 3306 though you will also have to update the port variable or use a different value with the --port= option when starting the server.

免责声明:我是MySQL X DevAPI Connector for Node.js的首席开发人员

Disclaimer: I'm the lead developer of the MySQL X DevAPI Connector for Node.js