当IDEA链接MySQL时,有的人会报[08001]的错误,如下:
Connection to test@127.0.0.1 failed.
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
我也看了好多网上的解决办法,有的没什么用,我告诉你们一个特别万能的方法!!!!
请把驱动换成:mysql-connector-java-5.0.8.jar
你会发现很管用。