I followed the standard way i usually do on localhost:

const con = mysql.createConnection({
  user: "xxxx",
  host: "xxxx",
  password: "xxxxx",
  database: "database",
  port: "xxxx",

But I get the following error when using the digital ocean managed database: Error: ERNOTSUPPORTEDAUTHMODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client.

So far the only was to login to it is via terminal using the flags way of logging in.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer
Submit an Answer