node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

True negative: ssl-mode query params in connectionString considered as invalid

Open davidkhala opened this issue 2 months ago • 1 comments

When I tried to create connection by raw connection string

...
mysql.createConnection(`mysql://avnadmin:${password}@mysql-davidkhala.d.aivencloud.com:22013/defaultdb?ssl-mode=REQUIRED`)

The warning prompts like

Ignoring invalid configuration option passed to Connection: ssl-mode. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection

This validation is not agreed by Aiven Cloud. The above connection string format is copied directly from Aiven Cloud's Service URI section image

davidkhala avatar Apr 22 '24 06:04 davidkhala