jdbc Communications link failure

今天用jdbc连接MySQL 怎么连接都是Communications link failure,网上查了一圈资料,基本都是mysql﹥ show global variables like 'wait_timeout'; wait_timeout的设置问题,按照他们的改了后,还是failure,我还以为是connect/j的版本问题,瞄了一圈,后来发现url写错了,localhost写成了localhose!

猜你喜欢

转载自www.cnblogs.com/martinho/p/13393507.html