mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			364 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			364 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| SET GLOBAL log_warnings=4;
 | |
| SET GLOBAL max_connections=2;
 | |
| connect  con1,localhost,root,,;
 | |
| SELECT 1;
 | |
| 1
 | |
| 1
 | |
| connect  con2,localhost,root,,;
 | |
| SELECT 2;
 | |
| 2
 | |
| 2
 | |
| ERROR HY000: Too many connections
 | |
| connection default;
 | |
| SELECT 0;
 | |
| 0
 | |
| 0
 | |
| show status like "Threads_connected";
 | |
| Variable_name	Value
 | |
| Threads_connected	3
 | |
| SET GLOBAL log_warnings=default;
 | |
| SET GLOBAL max_connections=default;
 |