bobslavtriev / mysql-baileys

Authentication with MySQL for Baileys
https://bobslavtriev.github.io/mysql-baileys/
MIT License
40 stars 20 forks source link

How to specify the port? #13

Closed manojsitapara closed 3 months ago

manojsitapara commented 3 months ago

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 3 months ago

me too strugling with thease +1

martinlopez commented 3 months ago

+1

bobslavtriev commented 3 months ago

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

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