Questions tagged [connections]

One or more connections to a database or database server. For questions about *establishing* a connection, use the **connectivity** tag instead.

Filter by
Sorted by
Tagged with
0 votes
2 answers
32 views

How can I create a brand new alarm based on a verification not listed by default on SQL Server?

I want to create an alert like the ones from Brent Ozar's How to Configure SQL Server Agent Alerts, but I couldn't find a message related to the error I want to monitor on sys.messages as the ...
user avatar
  • 4,394
4 votes
1 answer
51 views

SET SINGLE_USER WITH ROLLBACK IMMEDIATE only disconnects sessions when account is a database user

The following code creates a user that is able to restore a database: CREATE LOGIN RestoreUser WITH PASSWORD = 'MyPassword' ALTER SERVER ROLE dbcreator ADD MEMBER RestoreUser This works fine and the ...
user avatar
  • 1,450
3 votes
3 answers
216 views

Can connect to virtual MySql instance using 127.0.0.1, but not localhost

Running MySql 5.7.33 on a local VirtualBox instance. I have forwarded port 3306 from the virtual server to be accessible locally. On my virtual host, I have this in my /etc/mysql/my.cnf file ... [...
user avatar
  • 575
-3 votes
2 answers
222 views

Change max_connections Postgresql

how i can change max_connections on Postgresql.conf without restart service Postgresql? Systemctl reload postgresql.service not work with this conf.
user avatar
0 votes
0 answers
112 views

Unable to connect to Mongodb database using the Mongodb compass

I have created a mongoDB database on DigitalOcean, then I try to establish a connection to the database using MongoDB Compass. However, when I try to do so, "connect ECONNREFUSED 143.198.217.148:...
user avatar
  • 1
0 votes
0 answers
35 views

Datagrip connecting to databases on launch

I'm using Jetbrains Datagrip to connect to Mysql servers. My problem is that Datagrip connects to the various databases I created as soon as I launch it. That's not a problem with development ...
user avatar
0 votes
1 answer
322 views

PostgreSQL 12 dropped replication slot but standby is still trying to contact the primary

We have recently decommissioned a standby that was experiencing some hardware issues from our streaming replication cluster. We were able to successfully stop the PID on the primary and then drop the ...
user avatar
  • 111
1 vote
1 answer
544 views

Azure Data studio - connection to server in the same network - Error: The received certificate has expired

I am trying to connect to SQL server on my network with Azure Data Studio, and I am getting error: A connection was successfully established with the server, but then an error occurred during the ...
user avatar
0 votes
1 answer
123 views

How to forcefully drop all active connections off a database?

On one server I have a Postgresql database and there're many clients on other servers accross the internet that connect to it. I want to drop all the active connections on demand, they should be ...
user avatar
0 votes
1 answer
665 views

PostgreSQL: Using the .pgpass file

I have been reading up on the .pgpass file, but I can’t get it working for me. My .pgpass file looks something like this: 127.0.0.1:5432:accounts:fred:p@55w0rd I set the privilege to 0600 (this is on ...
user avatar
  • 2,337
0 votes
0 answers
67 views

postgres pg_basebackup terminating connection

I am unable to successfully use pg_basebackup with my database. system details: virtual Ubuntu server 20.04 4 cores 32GB memory storing postgres data to a virtual drive mount (3.5TB capacity) postgres ...
user avatar
0 votes
2 answers
3k views

Test connection failed because of an error in initializing provider. DBNETLIB ConnectionOpen SecDoClientHandshake SSL security error

I'm running all Windows 2016 Servers. I've got MS SQL 2016 installed on one. For whatever reason, we cannot connect to the SQL Server unless we enable TLS 1.0 which is obviously not cool. I found ...
user avatar
  • 11
0 votes
1 answer
185 views

When a thread/process crashes on acquired DB locks, how does DB detects that and releases the lock?

Take MySQL as an example, say a thread run SELECT ... FOR UPDATE crashes before committing the update, how does MySQL detect the crash and release the lock? I assume most RMDBS will have some keep-...
user avatar
0 votes
0 answers
28 views

postgresql, connection limit for different roles

Is possible setup in postgresql.conf connection limit for specified role globally (in some .conf file) or individually? For example, I have 3 roles and max_connections = 600. Need to setup max 10 ...
user avatar
  • 153
0 votes
1 answer
155 views

ODBC Calling Fill - Unexpected closed connection after 2 hours

Using PostgreSQL 12.3 (Ubuntu 12.3-1.pgdg18.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit I use driver PostgresSQL Unicode(x64) version 13.00.00.00 I have ...
user avatar
0 votes
1 answer
687 views

many "unauthenticated user" on MySQL Processlist

In show processlist I have (from time to time) lot of unauthenticated user. How it looks like? | 187743 | unauthenticated user | connecting host | NULL | Connect | 39173 | ...
user avatar
  • 1
0 votes
1 answer
52 views

Identifying processes that open MySQL connections

I need to identify which application process issues a large number of MySQL connections on a Linux system. The show processlist sql command or tools like innotop do not really help, as they only show ...
user avatar
  • 111
0 votes
2 answers
59 views

Nested Stored Procedure Connections

I have a Stored procedure that simply looks for Imported files through a set of other processes. The main SP runs every 5 mins and looks for new files in a directory and imports them into a staging ...
user avatar
0 votes
1 answer
250 views

Why is MySQL not connecting when reading from mylogin.cnf?

On Ubuntu 20.04, I can log into a server by specifying the log credentials on the CLI: $ mysql -h172.30.0.2 -uroot -p bar -e "SELECT id FROM users LIMIT 1;" Enter password: +----+ | id | +---...
user avatar
  • 1,048
0 votes
1 answer
84 views

MultiSubnetFailover=true for DBMSes besides SQL Server

A connection string for SQL Server can contain MultiSubnetFailover=true, to handle multiple DNS A records, letting the client try to connect to every IP address of a domain (or subdomain) name, to ...
user avatar
  • 179
0 votes
1 answer
43 views

Unknown source of high number of connections

In MySQL/Aurora I see from time to time a spike in connections number (from about 100 to 4000): MySQL doc says: Connections The number of connection attempts (successful or not) to the MySQL server. ...
user avatar
  • 373
1 vote
1 answer
30 views

SQL Server Identifying Connections that are utilising SQL from an application

Is it possible to identify connections in SQL Server 2014 that are utilising SQL that is passed from an application as opposed to calling an SP ?
user avatar
  • 1,415
0 votes
1 answer
408 views

Warning message: invalid value for parameter "default_tablespace" in postgres

I create a new tablespace using the following script: CREATE SCHEMA semiarido; CREATE ROLE semiarido PASSWORD 'senha'; GRANT CREATE ON SCHEMA semiarido TO semiarido; GRANT USAGE ON SCHEMA semiarido ...
user avatar
1 vote
0 answers
139 views

2020-07-29T07:44:29.817503Z 108716 [Note] Aborted connection 108716 to db:

We are getting continuously logs in mysql error logs 2020-07-29T07:46:56.534666Z 111536 [Note] Aborted connection 111536 to db: '' user: '' host: '' (Got an error reading communication packets) we ...
user avatar
  • 23
0 votes
2 answers
67 views

How Are SQL Server Clients Connecting?

I am asking two questions in this post. If I see activity in netstat with port 1433 for an unnamed instance, whose tcp addresses are not enabled, what does that mean? What is the preferred way to ...
user avatar
1 vote
2 answers
484 views

Why would I download CA certificate when starting a managed Postgres cluster on DigitalOcean?

I am trying for the first time a Postgres cluster provided as a managed service by DigitalOcean.com. As part of configuring the new cluster, their web interface gives me a user name, password, port ...
user avatar
0 votes
1 answer
25 views

Why do I have 2 connections when im using 1 client?

The command: select * from pg_stat_activity shows all currently active connections. The database is hosted by AWS RDS and I am accessing the database with pgAdmin 4, thus I expect one other ...
user avatar
0 votes
0 answers
395 views

Postgres memory usage grows over time, resets when clients restarted

I have a Postgres DB running on the same small server as some applications that use it. Immediately after restarting the applications, Postgres uses <100 MB memory. After a few days without ...
user avatar
  • 101
0 votes
1 answer
41 views

Why would the user matter for performance when running a query?

I have a web page with a database lookup that contains multiple optional parameters. When I select a couple of parameters and run the query, it returns in less than two seconds. However, when another ...
user avatar
  • 137
1 vote
1 answer
6k views

How to see unclosed PostgreSQL connection while using psycopg2? [closed]

I run python code: con = psycopg2.connect(some_dsn) cur = con.cursor() cur.execute(some_sql) res = cur.fetchone() #con.close() <-- connection is not closed Then I try: ps auxf | grep postgres ...
user avatar
  • 121
1 vote
1 answer
562 views

SQL Server Encrypted Connections - Configuration Manager does not see Certificate

My goal is to implement encrypted connections on Test SQL Server instance First, tried to create self-signed certificate in the Certificates snap in (certlm.msc), Personal > All Tasks > Request New ...
user avatar
1 vote
2 answers
2k views

Queries on large database kill connection to the server, works with LIMIT

I'm trying to run queries on a large-ish database without killing the connection to the server. I'm using Postgres 12.1 on a mac with 16gb of memory, and about 40gb of free disk. The database is ...
user avatar
1 vote
1 answer
896 views

How many pool connection size should be set for a 1000 users Jira system?

For a Jira system, if use Jira's default connection configuration as below: <?xml version="1.0" encoding="UTF-8"?> <jira-database-config> <name>defaultDS</name> <...
user avatar
  • 149
0 votes
1 answer
72 views

SQL*Loader and DC firewall timeout

We are loading a huge dataset using SQLLDR and there are index creation that lasts for a couple hours or even more. Firewall drops this connection as there is no data transfer during index creation ...
user avatar
0 votes
1 answer
48 views

Remote connection scheme without Windows Authentication/Domain in detail [closed]

There is a legacy C++ system that needs to be "translated", that uses ODBC for connecting to remote SQL Server Database. System is distributed to many different OS and different domains, some always ...
user avatar
  • 13
1 vote
1 answer
99 views

Audit logins and logouts [duplicate]

I need to trace and monitor client login connections (successful and failure) to our important SQL servers (20 MSSQL Server). What method do you recommend? Note: I think enabling "both failed and ...
user avatar
  • 111
0 votes
1 answer
1k views

Same session ID(with same SQL text) but 3 different connection ids

I was listing out all sessions open in my sql server 2016 production server. I have issues with slow performance and i have been investigating it. I see that i have several same sessions(session_id) ...
user avatar
  • 1,285
1 vote
2 answers
1k views

SSMS How do I open a new Query Window using Same Connection Instance of current Window

Coming from Oracle I have discovered that SSMS connects slightly different than Oracle's SQL Developer. Oracle you click ONE connection and then all tabs you open then use that Connection. SSMS ...
user avatar
3 votes
2 answers
5k views

How to connect using PDB userid on Oracle 18c XE?

I have created a PDB on Oracle 18c XE using following SQL command create pluggable database virlux admin user test1admin identified by test1pwd file_name_convert = ('/pdbseed/', '/test1/') ; Now, I ...
user avatar
  • 191
3 votes
1 answer
227 views

Record MultiSubnetFailover value at connection?

With AlwaysOn, there are 3 options for the keyword MultiSubnetFailover True (yes) False (no) (example) Not sent/used Not all applications support it's use in connection strings. Not all vendor ...
user avatar
1 vote
2 answers
1k views

MySQL 5.6 -- How do I tell if I need to increase innodb io thread setting?

I am trying to tune my mysql server for the high end system. We are using 16--32 core hosts with memory > 100GB. I have looked into a bunch of existing setting, but not sure if I need to tune up the ...
user avatar
2 votes
1 answer
525 views

User connections without a login

I was looking at SQL Server performance and noticed that CPU utilization goes high when the number of connections go high(I believe it is normal).Usually number of connections on an average was ...
user avatar
  • 1,285
0 votes
1 answer
146 views

ODBC connection with RD Gateway [closed]

here at my company, we use an RD Gateway server. that means when we want to access a server we have to set up the gateway in the connection...something like rdsgw.mycompany.com But, how could I do an ...
user avatar
0 votes
1 answer
26 views

how to change the driver of a ole_dbconnection from oracle_32bit to oracle_64bit

i have the connection string of: connection= new OleDbConnection("Provider=OraOLEDB.Oracle;UserId=userid;Password=password; Data Source=database;OLEDB.NET=true"); However after Oracle_64bit driver ...
user avatar
  • 47
1 vote
0 answers
918 views

Aborted connections (Erros reading communication packets)

I set up a new Database Server over a SQL Dump with innoDB MYSQL 5.7 from MYSQL 5.6. The Server running external with many sleeping SMTP connections over 1 Mio a day. I made the server open for ...
user avatar
  • 11
0 votes
1 answer
69 views

Is It Okay to Leave the Connection Open and Set CommandTimeout for Long Durations?

I have to process daily files and it's a long process that deletes, imports and updates processes. Like literally 20 to 30 minutes per file for several files a day. ** EDIT: I also have some ...
user avatar
  • 195
1 vote
0 answers
259 views

Is sp_getapplock recommended for long running locks (> 10 minutes)?

I'm trying to get rid of a Redis dependency in our application. We notice that is worse for our uptime to have a dependency on both SQL and Redis, above the performance benefits Redis would give us. ...
user avatar
  • 333
2 votes
2 answers
244 views

MSSQL over the internet but we connect over RDP

We connect throguh RDP to our ERP solution which uses MSSQL 2008, right now I can see on windows logs and SQL logs that we have a HUGE amount of connection attempts to sa user and results in slow ...
user avatar
  • 21
0 votes
1 answer
53 views

What is a connection in MySQL Workbench?

I've searched so much and still found no answer to what exactly a connection is. I'm a beginner and don't know how connecting to databases/servers works, so I can't move forward yet. What does the ...
user avatar
1 vote
1 answer
27 views

Way to check where the MySQL connection was initialized?

Is there a way to identify who created the MySQL connection? For example: in file a.php $conn = mysqli_connect($dbhost, $dbuser, $dbpwd, null, $port, $socket); I would like to know that this ...
user avatar

1
2 3 4 5