jdbc Communications link failure

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

posted @ 2020-07-28 19:59  MartinHO  阅读(280)  评论(0编辑  收藏  举报