Eclipse中运行出错

[复制链接]
查看11 | 回复1 | 2010-5-20 17:04:23 | 显示全部楼层 |阅读模式
这是什么错误?我没有用到数据库,为什么说数据库连接错误呢?希望各位亲能帮我看看。
ERROR - Cannot create PoolableConnectionFactory (Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.ConnectException))
WARN - Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to?


回复

使用道具 举报

千问 | 2010-5-20 17:04:23 | 显示全部楼层
你mysql数据库开了吗?如果开了。你看看你的url写对了没。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行