MySQL/MariaDB general log file 설정
JDBC Driver connect string설정
/etc/my.cnf
[mysqld]
general_log=ON
log_output=FILE
general_log_file=/var/lib/mysql/mysql_general.log
JDBC connect string
- jdbc:mysql://host1:port1,host2:port2/eaidb?useUnicode=yes&characterEncoding=UTF-8
- jdbc:mariadb://host1:port1,host2:port2/eaidb?useUnicode=yes&characterEncoding=UTF-8
- jdbc:mysql://[(host=myhost1,port=1111,user=sandy,password=secret),(host=myhost2,port=2222,user=finn,password=secret)]/db
- jdbc:mysql://address=(host=myhost1)(port=1111)(user=sandy)(password=secret),address=(host=myhost2)(port=2222)(user=finn)(password=secret)/db