node.js - Mysql Connection Lost When I Open A Http Proxy -


there code

module.exports = {     host: '127.0.0.1',     user: 'root',     password: '1236',     database: 'netease' }  const pool = mysql.createpool(database);  const query = (sql, options, callback) => {     pool.getconnection((err, conn) => {         if (err) {             callback(err, null, null);         } else {             conn.query(sql, options, (err, results, fields) => {                 callback(err, results, fields);                 conn.release();             });         }     }); }  // test query('select * singer singer=1', [], (err, res) => {     console.log(err,res); }) 

if open vpn proxy such shodowsocks , error callback

error: connection lost: server closed connection.(…) 

if close vpn mysql run normal without error.

so confused if forget set mysql config when open vpn or other reasons?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -