Skip to content

mberta/mybatis-test-mysql-aborted-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mybatis-test-mysql-aborted-connection

This code generate an 'Aborted connection' message in mysql server log.

To test it, set the following system properties:

java -Ddburl=jdbc:mysql://host:port/DB_NAME -Dusername=user -Dpassword=password 

It should generate a message in mysql server log similar to this:

2016-11-03T11:30:44.894384Z 2558213 [Note] Aborted connection 2558213 to db: 'COPERNICO' user: 'copernicodba' host: '10.242.1.26' (Got an error reading communication packets)

The test executes a dummy SELECT 1 statement

Test environment:

  • mybatis 3.4.1
  • mysql oracle version 5.7.13 on CentOS 7.2
  • mysql-connector-java 5.1.40

About

This code generate an 'Aborted connection' message in mysql server log

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages