I use mariadb 10.6.17 version and mysql2 can't connect to the server but php can login...
I tried every option
database.js
const { createPool } = require('mysql2');
const config = require('./config');
module.exports = createPool(config.mysql);
I use mariadb 10.6.17 version and mysql2 can't connect to the server but php can login...
I tried every option
database.js
const { createPool } = require('mysql2');
const config = require('./config');
module.exports = createPool(config.mysql);