knex.js

ConnectionError: Failed to connect to localhost:undefined in 15000ms

拟墨画扇 提交于 2020-12-06 12:10:10
问题 I am using KnexJs attempting to connect to a local Microsoft SQL Server Express. However, with the below configuration, I am getting an error. I've followed the typical steps, but I'm still getting the error. What I've tried: Set up a SQL Server authentication login for the database Enable SQL Server authentication on the server Enable TCP/IP on the server Restart the Windows services Restart the SQL Server through SQL Server Management Studio Verify ability to log in through SQL Server

ConnectionError: Failed to connect to localhost:undefined in 15000ms

五迷三道 提交于 2020-12-06 12:09:54
问题 I am using KnexJs attempting to connect to a local Microsoft SQL Server Express. However, with the below configuration, I am getting an error. I've followed the typical steps, but I'm still getting the error. What I've tried: Set up a SQL Server authentication login for the database Enable SQL Server authentication on the server Enable TCP/IP on the server Restart the Windows services Restart the SQL Server through SQL Server Management Studio Verify ability to log in through SQL Server

ConnectionError: Failed to connect to localhost:undefined in 15000ms

依然范特西╮ 提交于 2020-12-06 12:06:38
问题 I am using KnexJs attempting to connect to a local Microsoft SQL Server Express. However, with the below configuration, I am getting an error. I've followed the typical steps, but I'm still getting the error. What I've tried: Set up a SQL Server authentication login for the database Enable SQL Server authentication on the server Enable TCP/IP on the server Restart the Windows services Restart the SQL Server through SQL Server Management Studio Verify ability to log in through SQL Server

Having “Timeout acquiring a connection” after upgrading Knex

一曲冷凌霜 提交于 2020-12-02 12:11:45
问题 In my company, our application runs on NodeJS over multiple EC2 instances and one RDS database. Our application needed some upgrades as some dependencies were already quite old, and one of the upgrades we did that called our attention was updating our database libraries: mysql (from 2.16.0 to 2.17.0), knex (from 0.12.2 to 0.19.1) and bookshelf (0.10.2 to 0.15.1). After checking the changelog, no code changes were required, so we quickly managed to upload it to our staging server. Suddenly our

Having “Timeout acquiring a connection” after upgrading Knex

萝らか妹 提交于 2020-12-02 12:07:40
问题 In my company, our application runs on NodeJS over multiple EC2 instances and one RDS database. Our application needed some upgrades as some dependencies were already quite old, and one of the upgrades we did that called our attention was updating our database libraries: mysql (from 2.16.0 to 2.17.0), knex (from 0.12.2 to 0.19.1) and bookshelf (0.10.2 to 0.15.1). After checking the changelog, no code changes were required, so we quickly managed to upload it to our staging server. Suddenly our

Transaction issue with knexjs, typescript and mariadb

房东的猫 提交于 2020-11-29 02:08:31
问题 I want to have a transaction, in typescript, to refresh some data in a table. To do so the following steps need to apply: Truncate all the records from a table Set the AUTO_INCREMENT to 1 Insert the new records in the table If something goes wrong I would like to rollback the transaction and not alter the existing records in the db table. I have tried different things but I think I am missing something and I wish someone can spot what I am doing wrong. 1st Attempt await knex.transaction(async