
看看现在你的MySQL存储引擎已经提供:
的mysql>显示引擎
看看你当前的默认存储引擎的MySQL:像'%STORAGE_ENGINE%'
的mysql>显示变量
你想看到什么引擎表(在后置发动机的参数显示的结果中表示,该表是目前使用的存储引擎):
的mysql>SHOW CREATE TABLE表名
测试过,只配置这两行,就有log4j.logger.java.sql=DEBUG
log4j.logger.com.ibatis=DEBUG
130506 190605.357 DEBUG [BaseJdbcLogger.java,132] - ooo Using Connection [com.mysql.jdbc.JDBC4Connection@48082751]
130506 190605.362 DEBUG [BaseJdbcLogger.java,132] - ==> Preparing: select * from t_blog where id = ?
130506 190605.579 DEBUG [BaseJdbcLogger.java,132] - ==>Parameters: 1(Integer)
130506 190605.729 DEBUG [BaseJdbcLogger.java,132] - ooo Using Connection [com.mysql.jdbc.JDBC4Connection@48082751]
130506 190605.731 DEBUG [BaseJdbcLogger.java,132] - ==> Preparing: select * from t_comment where blog_id = ?
130506 190605.733 DEBUG [BaseJdbcLogger.java,132] - ==>Parameters: 1(Integer)
130506 190605.769 DEBUG [BlogDaoIBatis.java,38] - blog=id=1, author=test1, createtime=Sat Mar 30 09:00:00 CST 2013, comments=[id=1, content=
test1 content, createtime=Sat Mar 30 09:00:00 CST 2013, blog=null, id=2, content=test2 content, createtime=Sat Mar 30 09:01:00 CST 2013, blo
g=null]
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)