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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -