搞了好几个小时,终于搞定了乱码根本原因还是编码方式不同造成的,只要编码方式统一就没问题1. 进入 mysql 命令行, 用 show variables like 'character_set_%'; 查看编码| character_set_client | utf8 | character_set...
分类:
数据库 时间:
2014-12-14 22:36:04
阅读次数:
200
因为bugfree要新建好多用户,所以用了存储过程。第一次写的凭自己理解,但是登录时,提示了没有产品权限。想到了打开mysql general_log来看看具体执行的sql。mysql> show global variables like '%general%';+----------------...
分类:
数据库 时间:
2014-12-14 15:46:43
阅读次数:
167
分析MySQL语句查询性能的方法除了使用 EXPLAIN 输出执行计划,还可以让MySQL记录下查询超过指定时间的语句,我们将超过指定时间的SQL语句查询称为“慢查询”。查看/设置“慢查询”的时间定义1 mysql> show variables like "long%";2 +----------...
分类:
数据库 时间:
2014-12-14 00:38:22
阅读次数:
236
MySQL5.5以后默认使用InnoDB存储引擎,其中InnoDB和BDB提供事务安全表,其它存储引擎都是非事务安全表。若要修改默认引擎,可以修改配置文件中的default-storage-engine。可以通过:show variables like 'default_storage_engine...
分类:
数据库 时间:
2014-12-13 17:40:09
阅读次数:
237
[ 查看系统关于慢查询的设置 ]mysql> show variables like '%slow%';+---------------------------+--------------------------------+| Variable_name | Value ...
分类:
数据库 时间:
2014-12-12 18:17:17
阅读次数:
256
--?查看数据库定时器事件是否打开
show?variables?like?‘event_scheduler‘;
--?打开数据库定时器
set?global?event_scheduler?=?1;
show?variables?like?‘event_scheduler‘;
select?@@event_sched...
分类:
数据库 时间:
2014-12-12 13:29:10
阅读次数:
210
1、默认 query_cache 是打开的 你使用 show global variables like ‘%query_cache%‘; 确认一下有没有打开,如果打开了。第一次查询读数据文件,第二次就会走query_cache,所以就会很快。当然 ,如果数据更新了,要...
分类:
数据库 时间:
2014-12-10 16:34:13
阅读次数:
229
Fun with instance variables实例变量的乐趣Take a look at MasterViewController.h:——看看 MasterViewController类@interface MasterViewController : UIViewController ....
分类:
移动开发 时间:
2014-12-10 12:29:14
阅读次数:
291
Hi, I find GYP's bug when dealing with GYP_DEFINES env variables override.
I was having a successfully android build, and i wanted to enable profiler support, so i followed the
http://www.chromi...
分类:
其他好文 时间:
2014-12-10 10:50:08
阅读次数:
172
add by zhj:在MySQL5.6中对一些参数有增删改,详见http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html原文:http://mageedu.blog.51cto.com/4265610/1062628作者...
分类:
数据库 时间:
2014-12-09 21:24:01
阅读次数:
356