node.js of knex expression code database connection problems

Toss 3 hours

Obviously database configuration all OK, but the deposit into the expression is always the four question marks

Python connection with all normal, so the problem must be knex

 

Correctly configured as follows:

 connections: {
                host: 'r',
                user: 'XX',
                password: 'XXX',
                database: 'XX',
                charset: 'utf8mb4' <== specified encoding
            },

Guess you like

Origin www.cnblogs.com/JohannaFeng/p/11527403.html