MySQL 连接问题java.sql.SQLException: Communication failure during handshak.
2009-12-31 15:08
555 查看
安装好mysql后,在开发JSP页面使用mysql时,出现了如下问题. java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306? 我的mysql是mysql-5.0.22,JDBC驱动是mysql-2.0.4.jar, 网上找个半天,发现是版本的问题。JDBC驱动器的版本和mysql的版本不匹配, 结果把JDBC的驱动改为mysql-connector-java-5.0.8-bin.jar, 就okay了。 另外在用新的驱动器的时侯要把老的给删掉。
相关文章推荐
- java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?
- java.sql.SQLException: Communication failure during handshake. Is there a server running on localhos
- spring+ibatis问题1—— 程序报错:java.sql.SQLException: Io 异常: Connection reset by peer, socket write error; ”或“java.sql.SQLException 关闭的连接”异常
- sql查询报java.sql.SQLException: Column 'LC_ID' not found 的错误实际上是mysql在hibernate别名的问题
- 关于mysql的java.sql.SQLException: Incorrect string value: '\xF0\x9F\x91\xBD\xF0\x9F…'问题
- sql查询报java.sql.SQLException: Column 'LC_ID' not found 的错误实际上是mysql在hibernate别名的问题
- mysql:java.sql.SQLException:Field 'XXXX' doesn't hava a default value问题
- 数据库连接问题之:Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
- java web连接mysql异常Communication failure during handshake. Is there a server running on localhost
- mysql连接异常java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date
- jdbc 连接数据库出现 密码错误的问题(java.sql.SQLException: Access denied for user 'root'@'localhost' (using passwo)
- 连接mysql报Communication link failure: java.io.IOException, underlying cause: Unexpected end of input s
- 使用mysql-connector-java.jar连接MySql时出现:Error while retrieving metadata for procedure columns: java.sql.SQLException: Parameter/Column name pattern can not be NULL or empty.
- MySQL java连接被拒绝:java.sql.SQLException: Access denied for user 'root'@'****' (using password: YES)
- java.sql.SQLException: 关闭的连接问题及hibernate clob缓冲流存储的解决过程记录
- 解决java插入mysql时出现java.sql.SQLException: Incorrect string value: '\xF0...'问题
- MySQL连接数据库报时区错误:java.sql.SQLException: The server time zone value
- 【MySQL】连接MySQL时,字符无法识别(java.sql.SQLException: Unknown character set index for field '224' received )
- mysql连接报错---java.sql.SQLException: null, message from server
- 今天线上系统碰到个怪问题DBCP数据连接异常,java.sql.SQLException: Already closed.