Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const config = {
- connectionLimit: 1000,
- host: 'hostname',
- user: 'xxx',
- password: 'xxx',
- database: xxxx
- }
- this.con = this.mysql.createPool(config)
- this.conectarMysql().map(pool => {
- pool.getConnection((err, connection) => {
- if (err) {
- console.log(err);
- this.configurar();
- } else {
- console.log('se conecto');
- connection = connection;
- this.cargarRutasAuth(connection).map(authorize => {
- })
- }
- })
- }
Add Comment
Please, Sign In to add comment