问题:error while performing database login with MYSQL
Connector/J driver:Communications link failure due to underlying exception
解决方式:编辑/etc/my.cnf(windows下为my.ini),将超时时间设置为10年,在[mysqld]后面加入:
wait_timeout=315360000
然后重启MySQL
# service mysql restart
搞定。然后重启超时的java连接池程序吧。
Connector/J driver:Communications link failure due to underlying exception
解决方式:编辑/etc/my.cnf(windows下为my.ini),将超时时间设置为10年,在[mysqld]后面加入:
wait_timeout=315360000
然后重启MySQL
# service mysql restart
搞定。然后重启超时的java连接池程序吧。