Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
How can i solve this error when i use mysql module?

I use the node module to connect my local database, then log this error message:

Client does not support authentication protocol requested by server; consider upgrading MySQL client next is my configuration:

const mysql = require("mysql");
const db = mysql.createPool({
  host: "127.0.0.1",
  user: "root",
  password: "root",
  database: "my_db_01"
});

db.query('select 1', (err, results)=>{
    if (err) return console.log(err.message);
    console.log(results);
});

I can make sure the configuration is correct.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This looks like a frequent issue in the bug reports for the mysql module.

That module hasn't had a commit since 2020. It has 172 open issues. I would consider it abandoned.

Use a different database module. mysql2 seems to be popular.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!