myeclipse报错
严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-5-20 14:35:20 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
严重: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
请问这是怎么回事?
com.mysql.jdbc.Driver 你的jdbc参数错误!!! userName ,password ,对一下是否正确! 还有就是你的jdbc驱动程序是否正确!
连接未能正确关闭,会导致内存泄漏
but failed to unregister it when the web application was stopped.
但是在应用关闭的时候未能卸载
To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
为防止内存泄漏,该JDBC驱动被强制卸载了
请处理好你的连接
给个能用的代码你对比一下好了
<%@ page contentType="text/html;charset=gb2312"%>
<%-- 导入java.sql包,表示要使用数据库操作 --%>
<%@ page import="java.sql.*"%>
<html>
<head>
<title>登陆</title>
</head>
<body>
<center>
<h1>登陆范例——用户名及密码固定</h1>
<hr>
我用的是mysql6.0为什么一创建两个表这间用外键来连接时就说创建不了:can"nt create table ...
你的语句是什么?你的表是什么存储引擎? 如果是myisam 则不支持外键,你需要把表改为inndb
貼出SQL ......