上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: 这是一个真实的场景,表的定义如下:CREATE TABLE `user` ( `id` bigint(20) NOT NULL, `user_nick` varchar(32), `user_source` tinyint(4) NOT NULL , `user_type` tinyint(4) NOT NULL,........ `version` int(11) DEFAULT '0' COMMENT '版本', `crc_user_nick` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_use 阅读全文
posted @ 2012-01-17 19:26 sunss 阅读(5552) 评论(0) 推荐(1) 编辑
摘要: 今天接到报警,报警的信息是:MYSQL_BIN_LOG::purge_logs was called with file '/home/log/mysql-bin.22.log' not listed in the indexgoogle一把,查到了mysql的源码:View Code int MYSQL_BIN_LOG::purge_logs(const char *to_log, bool included, bool need_mutex, ... 阅读全文
posted @ 2012-01-12 12:16 sunss 阅读(2055) 评论(0) 推荐(0) 编辑
摘要: 平时工作中有关char,varchar的疑问,今天总结下:char的范围可以存放0到255个字符,注意哦,是确切的字符,CREATE TABLE `t1` ( `id` int(11) DEFAULT NULL, `a` char(255) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=gbk1 row in set (0.00 sec)向表中插入几个值,insert into t1 values(1,'aaaaa'),(2,'我是谁'),(3,'(当我睁开眼睛,发现自己竟然什么也看不见,眼前一片黑暗时,我像被噩 阅读全文
posted @ 2012-01-04 11:33 sunss 阅读(5236) 评论(2) 推荐(0) 编辑
摘要: 乱码有很多种情况引起,不过通常情况都是由于各种编码不一致问题导致,今天遇到的乱码问题是:文件编码和数据库连接编码不一致的问题导致,由于要添加初始化数据,批量执行,采用source命令,root@(none) 03:14:49>use testDatabase changedroot@test 03:14:53>show create table rule\G;*************************** 1. row *************************** Table: ruleCreate Table: CREATE TABLE `rule` ( `i. 阅读全文
posted @ 2011-11-21 15:37 sunss 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 我回来了,从一个城市到另一个城市,从一个公司到另一个公司,从一个环境到另一个环境,而我面临的是更大的挑战和机遇,和一群“精英”们相处,这里每个人都是我的老师,每个人都是我的朋友,美好的未来,我来了!! 阅读全文
posted @ 2011-09-21 19:28 sunss 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 推荐的第一个工具叫Everything,号称“速度最快的文件名搜索工具”,详情请看:http://xbeta.info/everything-search-tool.htm汉化破解版:下载 阅读全文
posted @ 2011-07-20 18:02 sunss 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 安装coreseek的方法,参考官网:http://www.coreseek.cn/products/products-install/install_on_bsd_linux/下面我把遇到的问题和解决方法说下:问题1:undefined reference to `libiconv’解决办法:参考方案1解决一开始以为libiconv的问题,又重装了几次还是一样,最后终于找着办法了编辑:./src/MakeFile文件(必须confiure后在编辑 这个意思是告诉g++编译器 要加入库iconv的支持)将LIBS = -lm -lz -lexpat -L/usr/local/lib -lrt 阅读全文
posted @ 2011-07-20 17:06 sunss 阅读(384) 评论(0) 推荐(0) 编辑
摘要: #whereis autoconf #查看autoconf的路径#rpm -qf /usr/bin/autoconf#查看autoconf的版本#rpm -e --nodeps autoconf-2.59-12 #卸载原来版本#tar -zxf autoconf-2.65.tar.gz#cd autoconf-2.65#./configure --prefix=/usr#make && make install#rpm -qf /usr/bin/autoconf#rpm -qa | grep autoconf#/usr/bin/autoconf --help#/usr/bin/ 阅读全文
posted @ 2011-07-20 15:23 sunss 阅读(4689) 评论(0) 推荐(0) 编辑
摘要: 环境:Sphinx 0.9.8.1-release (r1533)和sphinxapi.php当我新建了一个sphinx的索引m_si后,在命令行执行:search -c etc/sphinx.conf -i si 错误可以搜索到东西,而当我通过sphinxapi.php访问时却出现下面的错误提示:关键词: 错误Warning: assert() [function.assert]: Assertion failed in /var/www/html/sphinx/sphinx/sphinxapi.php on line 502unknown local index 'si' 阅读全文
posted @ 2011-07-04 10:20 sunss 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 读取binlog,方法有二:1.使用mysqlbinlog,详细用法,请参考MySQL手册 2.使用MySQL的自带工具,SHOW BINLOG EVENTS读取relaylog,在5.4.4以后能使用show relay log ,如果要想读取的话,要用mysqlbinlog读取,方法:mysqlbinlog relaylogname 阅读全文
posted @ 2011-06-17 12:04 sunss 阅读(532) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页