Answer the question
In order to leave comments, you need to log in
Why can't I insert data into the table?
I work with the database like this:
const pool = mysql.createPool({
host: 'localhost',
user: 'debian-sys-maint',
password: '0YHR03vlLavnCC48',
db: 'users'
});
pool.getConnection((err, connection) => {
connection.query('INSERT INTO passport SET id = 2, name = "mak", pass = "kek"', (err, rows, fields) => {
connection.release();
console.log(rows, fields);
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question