Skip to content

ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MariaDB client #2001

Open
@ameijboom

Description

@ameijboom

I'm trying to connect my Discord bot to my server's MySQL database, but everytime I try to run the bot I get the following error:

let conn = mysql.createConnection({ insecureAuth : true, host : config.mysql.host, user : config.mysql.user, password : config.mysql.password, database : config.mysql.database });

config.json:
{ "token":"bottoken", "prefix":"m!", "mysql": { "host":"localhost", "user":"root", "password":"apassword!", "database":"aphi" } }

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