开启Mysql数据库InnoDB
解决The‘InnoDB’feature is disabled; you need MySQL built with ‘InnoDB’ to have it2009年12月29日 星期二 上午 11:15MySQL
出现如下语句:The ‘InnoDB’ feature is disabled; you need MySQL built with ‘InnoDB’ to have it working;
是mysql配置文件禁掉了这个选项!
关闭mysql数据库
在mysql的安装目录中找到my.ini文件
找到skip-innodb,在前面加上#号
保存,开启mysql数据库!搞定!
这也是开启Mysql数据库InnoDB功能的方法!!
相关文档:
select
count(*) as mcount ,
left(create_time,10) as ptime ,
count(if(receive_msg is null,id,null)) as nullcount ,
count(if(receive_msg = '1',receive_msg,null)) as apfcount ,
count(if(receive_msg = '2',receive_msg,null)) as dttcount ,
count(if(receive_msg = '3',receive_ms ......
tomcat6.0 + JSP + mysql数据库连接池配置
环境:tomcat6.0 ,mySQL 5.021
把mysql驱动包分别放到%TOMCAT_HOME%/lib 和你的应用的WEB-INF\lib文件夹下面
1、修改%TOMCAT_HOME%/conf/server.xml,添加如下内容(部分参数请本地化):
<Context path="/web" docBase="web" ......
在[mysqld] 下添加参数如下
#错误日志输出路径(使用/作为分割而不是\)
log-error="your error-log path"
log="Your mysql log path"
log-show-queries="Your slowquery path"
#设定超时时间 此处设置为两秒
long_query_time=2
Ok save my.ini
next
#停止mysql 服务
net s ......
1 Apache
修改 documentroot 根目录
directory 访问根目录权限
directoryindex 默认首页 ......
MySQL查询表内重复记录
查询及删除重复记录的方法
(一)
1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断
select * from people
where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1)
2、删除表中多余的重复记录,重复记录是根据单个字段 ......