Community Center | Not monitored
Tag not monitored by Microsoft.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
var mysql = await require('MySQL80');
var con = await mysql.createConnection({
host: "localhost",
user: "root",
password: "75577557",
debug: true,
database: "mydb"
});
await con.connect(function (err) {
if (err) throw err;
await res.write("Connected!");
await con.query("CREATE DATABASE mydb;", function (err, result) {
if (err) throw err;
await res.write("Database created");
res.end("");
});
});
Simple piece of node js and mysql code.
I get a corrupted error message
J���
8.0.23� ���5
l p- L�ےےے �ےد ����������Ba5 eS
'Hl@H�caching_sha2_password�!�� ے„ #08S01Got packets out of order
Any help would be appreciated.