君子以厚德载物
有朋自远方来,不宜乐乎。
摘要: 导出数据select * from dev_linkage where linkageid>3360 into outfile "D:\\add.sql" fields terminated by "," enclosed by "\"";load data infile "driver.txt" ... 阅读全文
posted @ 2013-11-07 14:22 snowcolin 阅读(401) 评论(0) 推荐(0) 编辑
摘要: Linux操作系统定时任务系统 Cron 入门 cron是一个linux下的定时执行工具,可以在无需人工干预的情况下运行作业。由于Cron 是Linux的内置服务,但它不自动起来,可以用以下的方法启动、关闭这个服务: /sbin/service crond start //启动服务 /sbin/service crond stop //关闭服务 /sbin/service crond restart //重启服务 /sbin/service crond reload //重新载入配置 你也可以将这个服务在系统启动的时候自动启动: 在/etc/rc.d/rc.local这个脚本的末... 阅读全文
posted @ 2013-11-01 15:38 snowcolin 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1、重中之重:第一次更新需要先把数据库先检索出来,执行脚本./post.commit#!/bin/shexport LANG=en_US.UTF-8SVN=/usr/local/subversion/bin/svnWEB=/www$SVN checkout file:///usr/local/subversion/repos/web/$WEB2、修改权限:chown -R daemon.daemon /wwwchmod -R 777 /wwwchown -R daemon.daemon/usr/local/subversion/repos/web/hooks/post-commitchmod 阅读全文
posted @ 2013-09-26 15:02 snowcolin 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 二. SVN 服务器搭建2.1 使用yum 安装SVN包关于YUM 服务器的配置参考:Linux 搭建 YUM 服务器http://blog.csdn.net/tianlesoftware/archive/2011/01/03/6113902.aspx[root@singledb ~]# yum install -y subversionLoaded plugins: rhnplugin, securityThis system is not registered with RHN.RHN support will be disabled.Setting up Install ProcessR 阅读全文
posted @ 2013-09-26 10:29 snowcolin 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.修改方式1代码改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"mysql -u root -p123mysql>use mysql;mysql>update user set host = '%' where user = 'root'; 2. 进入mysql 授 阅读全文
posted @ 2013-09-22 14:26 snowcolin 阅读(199) 评论(0) 推荐(0) 编辑
摘要: UCenter源代码里有一个函数call_user_func,开始以为是自己定义的函数,结果到处都找不到。后来才知道call_user_func是PHP的内置函数,该函数允许用户调用直接写的函数并传入一定的参数,下面总结下这个函数的使用方法。call_user_func函数类似于一种特别的调用函数的方法,使用方法如下: 调用类内部的方法比较奇怪,居然用的是array,不知道开发者是如何考虑的,当然省去了new,也挺有新意的:call_user_func_array函数和call_user_func很相似,只不过是换了一种方式传递了参数,让参数的结构更清晰: call_user_func_... 阅读全文
posted @ 2013-09-06 19:02 snowcolin 阅读(219) 评论(0) 推荐(1) 编辑
摘要: 1、基于ip地址的虚拟主机Listen 80DocumentRoot /home/httpd/html1ServerName www.ok1.comErrorLog /usr/local/apache/logs/error1_logCustomLog /usr/local/apache/logs/access1_log combinedDocumentRoot /home/httpd/html2ServerName www.ok2.comErrorLog /usr/local/apache/logs/error2_logCustomLog /usr/local/apache/logs/acce 阅读全文
posted @ 2013-09-03 18:03 snowcolin 阅读(176) 评论(0) 推荐(0) 编辑
摘要: window平台Redis安装redis windows安装文件下载地址:http://code.google.com/p/servicestack/wiki/RedisWindowsDownload#Download_32bit_Cygwin_builds_for_Windows我选择的redis为最新版的安装文件,见下图:Redis安装文件解压后,有以下几个文件。见下图redis-server.exe:服务程序redis-check-dump.exe:本地数据库检查redis-check-aof.exe:更新日志检查redis-benchmark.exe:性能测试,用以模拟同时由N个客户端 阅读全文
posted @ 2013-08-20 10:00 snowcolin 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1、MyISAM类型不支持事务处理等高级处理,而InnoDB类型支持。MyISAM类型的表强调的是性能,其执行数度比InnoDB类型更快,但是不提供事务支持,而InnoDB提供事务支持已经外部键等高级数据库功能。2、InnoDB 中不保存表的具体行数,也就是说,执行select count(*) from table时,InnoDB要扫描一遍整个表来计算有多少行,但是MyISAM只要简单的读出保存好的行数即可。注意的是,当count(*)语句包含 where条件时,两种表的操作是一样的。3、对于AUTO_INCREMENT类型的字段,InnoDB中必须包含只有该字段的索引,但是在MyISAM表 阅读全文
posted @ 2013-08-16 10:25 snowcolin 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1、iframe方法test.php请求: 回复:test2.php请求: 回复:2、建script方法JsServer_js.phpJsServer_server.php"hello", 2=>"world");echo "reni_cid='hello'";//echo json_encode($arr);//echo "window.reni_cid = {'project':[{'name1':'a1'},{'name2':' 阅读全文
posted @ 2013-07-25 17:34 snowcolin 阅读(319) 评论(0) 推荐(0) 编辑

期待你的评论交流