摘要: 查看最大连接数 select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CONNECTIONS'; 或者 show variables like '%max_connections 阅读全文
posted @ 2016-05-09 17:48 旋转的梦 阅读(226) 评论(0) 推荐(0)
摘要: 1、拷贝文件夹 cp -rf /opt/tomcat/tomcat.xmanager/webapps/xmanager/resources/upload/* /opt/tomcat/tomcat.xmanager-new/webapps/xmanager-new/resources/upload 查 阅读全文
posted @ 2016-05-07 11:57 旋转的梦 阅读(328) 评论(0) 推荐(0)
摘要: chooseMenu: function(_this) { //var mycomp = top.Ext.getCmp("my_comp"); var menuTreeStore = Ext.data.StoreManager.lookup('menuTreeStore_'+_this.node); if (!menuTreeStore) { ... 阅读全文
posted @ 2016-05-06 11:34 旋转的梦 阅读(1448) 评论(0) 推荐(0)
摘要: 1.用Java.util.Calender来实现 Calendar calendar=Calendar.getInstance(); calendar.setTime(new Date()); System.out.println(calendar.get(Calendar.DAY_OF_MONTH 阅读全文
posted @ 2016-05-05 14:05 旋转的梦 阅读(515) 评论(0) 推荐(0)
摘要: from Brand as b inner join fetch b.styles as s where s.styleId=? 阅读全文
posted @ 2016-04-24 17:04 旋转的梦 阅读(438) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-04-22 18:38 旋转的梦 阅读(2754) 评论(0) 推荐(0)
摘要: select * into outfile './bestlovesky.xls' from bestlovesky where 1 order by id desc limit 0, 50; 阅读全文
posted @ 2016-04-19 17:44 旋转的梦 阅读(146) 评论(0) 推荐(0)
摘要: 统计用户所有的角色, 结果: 1 张三 普通用户,管理员,XXX 2 李四 普通用户, XXX select ur.user_id,u.login_name,GROUP_CONCAT(r.name) from kn_user_role ur left join kn_user u on ur.use 阅读全文
posted @ 2016-04-19 17:42 旋转的梦 阅读(1670) 评论(0) 推荐(0)
摘要: 用下面方法解决(管理mysql用的是navicat).,设置以下几个参数的值后就正常了,以下语句也可以在mysql的控制台上执行 . show variables like '%timeout%'; show variables like '%packet%'; set global max_all 阅读全文
posted @ 2016-04-19 14:25 旋转的梦 阅读(682) 评论(0) 推荐(0)
摘要: 是要先add,不过可以设置创建的文件都默认 add的。修改默认值看下图:打开系统设置,找到 Version Control 设置选项: 在 When files are created 选项中选择第二个,Add silently(静默添加)即可。 阅读全文
posted @ 2016-04-11 15:12 旋转的梦 阅读(4435) 评论(0) 推荐(0)