Skip to content

Support MySQL with SSL enabled. #910

@axot

Description

@axot

Hi team, I encountered an issue while configuring DB_SSL = true.
The application failed to connect to the database after enabling this setting.
Could you please advise if there are any additional configurations or certificates required to support SSL connections?

TypeError: SSL profile must be an object, instead it's a boolean
    at new ConnectionConfig (/kutt/node_modules/mysql2/lib/connection_config.js:158:15)
    at Object.createConnection (/kutt/node_modules/mysql2/lib/create_connection.js:7:35)
    at /kutt/node_modules/knex/lib/dialects/mysql/index.js:67:38
    at new Promise (<anonymous>)
    at Client_MySQL2.acquireRawConnection (/kutt/node_modules/knex/lib/dialects/mysql/index.js:66:12)
    at create (/kutt/node_modules/knex/lib/client.js:262:39)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions