這個(gè)怎么解決啊?
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
2016-05-13
舉報(bào)
2016-05-14
謝謝,已經(jīng)解決了!
2016-05-13
幾種情況:
1、mysql數(shù)據(jù)庫(kù)有沒有啟動(dòng)
2、代碼里的mysql的jar包,也就是mysql數(shù)據(jù)庫(kù)驅(qū)動(dòng)有沒有放進(jìn)去
3、代碼里mysql的URL寫的對(duì)不對(duì)
4、代碼里賬號(hào)密碼對(duì)不對(duì)