bobslavtriev / mysql-baileys

Authentication with MySQL for Baileys

Home Page:https://bobslavtriev.github.io/mysql-baileys/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify the port?

manojsitapara opened this issue · comments

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
    })

me too strugling with thease +1

commented

Added port in MySQLConfig, update to mysql-config v1.4.0

await useMySQLAuthState({
    ...config,
    port: 3306, // optional
})