Archivos de rutas
router.post('/add', async (req, res) => {
const { title, url, description } = req.body;
const newLink = {
title,
url,
description,
};
await pool.query('INSERT INTO links set ?', [newLink]);
req.send('recibided');
});
la consola muestra:
(node:9104) UnhandledPromiseRejectionWarning: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Archivos de rutas
router.post('/add', async (req, res) => {
const { title, url, description } = req.body;
const newLink = {
title,
url,
description,
la consola muestra:
(node:9104) UnhandledPromiseRejectionWarning: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client