Tutorials, Free Online Tutorials, publishbookmarks provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, ajax, core java, sql, python, php, c language etc. for beginners and professionals.
kotlin declare variables to remove the question mark (?) Use keyword Lateinit
2023-01-26
error message:Client does not support authentication protocol requested by server; consider upgrading MySQL client
solution Open the dbeaver and run the following SQL Alter user 'root'@'localhost' identify with mysql_native_password by ';
Run node.js again, successfully connect to the database
const mySql =require('mysql')const db = mySql.createConnection({
host:"localhost",user:"root",password:"19980404",database:"sys"})
db.connect()
db.query('select * from user',(err, data)=>{
if(err){
console.log(err);return console.log('query failed')}
console.log(data);})