Guest User

Untitled

a guest
Feb 6th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. const config = {
  2. connectionLimit: 1000,
  3. host: 'hostname',
  4. user: 'xxx',
  5. password: 'xxx',
  6. database: xxxx
  7. }
  8.  
  9.  
  10. this.con = this.mysql.createPool(config)
  11.  
  12. this.conectarMysql().map(pool => {
  13. pool.getConnection((err, connection) => {
  14. if (err) {
  15. console.log(err);
  16. this.configurar();
  17. } else {
  18. console.log('se conecto');
  19.  
  20. connection = connection;
  21. this.cargarRutasAuth(connection).map(authorize => {
  22.  
  23. })
  24. }
  25. })
  26. }
Add Comment
Please, Sign In to add comment