Home >Database >Mysql Tutorial >mysql-java.net.UnknownHostException: hostname

mysql-java.net.UnknownHostException: hostname

PHPz
PHPzOriginal
2016-06-06 09:35:272090browse

mysqljsp数据库exception

相关mysql视频教程推荐:《mysql教程

用jsp连接mysql数据库时出现了这样的错误,怎么解决?

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.UnknownHostExceptionMESSAGE: hostname
STACKTRACE:
java.net.UnknownHostException: hostname
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn