用jsp連接mysql數據庫時出現了這樣的錯誤,怎麼解決?
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.UnknownHostException
MESSAGE: hostname
STACKTRACE:
java.net.UnknownHostException: hostname
提示得很清楚,沒有找到hostname,你怎麼寫的連接字符串