Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
None
-
None
-
maxscale 24.02.2
Description
- maxctrl create listener Read-Write-Service MongoDB-Listener --protocol=nosqlprotocol 'nosqlprotocol=
{"user":"nosql_admin", "password": "123456"}
'
Unrecognized option:protocol
--------------------------
mongo -u admin -p 123456 192.168.137.131:17017 --authenticationDatabase admin --quiet
Error: Authentication failed :
connect@src/mongo/shell/mongo.js:372:17
@(connect):3:6
exception: connect failed
exiting with code 1
You need to also pass a port to the command:
maxctrl create listener RW-Split-Router MongoDB-Listener 5555 protocol=nosqlprotocol 'nosqlprotocol={"user":"nosql_admin","password": "123456"}'
This would create it on port 5555.
The protocol must also be defined as one of the parameters to the command, not as an option. The legacy option approach was removed from maxctrl.