How to specify the port?
manojsitapara opened this issue · comments
Manoj commented
How can I specify the MySql port number in below code?
const { state, saveCreds, removeCreds } = await useMySQLAuthState({
session: sessionId, // required
host: 'mysql.com', // optional
user: 'admin', // optional
password: 'password', // required
database: 'baileys', // required
tableName: 'auth' // optional
})
zaidnizam commented
me too strugling with thease +1
Martín López commented
+1
Bob commented
Added port in MySQLConfig, update to mysql-config v1.4.0
await useMySQLAuthState({
...config,
port: 3306, // optional
})