2013年4月15日
摘要: 配置mmm,make install的过程中出现"Makefile", line 3: Need an operator安装gmake,用gmake install安装。 阅读全文
posted @ 2013-04-15 19:01 语辰 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 比如想在test1上传文件/etc/mysql-mmm/mmm_common.conf的内容到test2的该文件,可以做如下操作test1#nc -l 6666 </etc/mysql-mmm/mmm_common.conftest2#nc test1的ip地址 6666 > /etc/mysql-mmm/mmm_common.conf 阅读全文
posted @ 2013-04-15 18:48 语辰 阅读(155) 评论(0) 推荐(0) 编辑
  2013年4月12日
摘要: 方法一,cd /usr/ports/security/sudomake install clean方法二,pkg_add -r sudo可以使用pkg_info|grep sudo来获取sudo的版本号sudo的配置文件在/usr/local/etc/sudoers里面,sudo的配置文件不应直接编辑,而应该使用visudo来进行修改。下面是配置sudo的方法:qifan ALL=(ALL) ALL #qifan可以使用整个系统的全部权限%admin ALL=(ALL) ALL #指定了admin组的所有用户可以使用全部的权限设置密码在一段时间后自动退出Defaults:qifan times 阅读全文
posted @ 2013-04-12 14:40 语辰 阅读(419) 评论(0) 推荐(0) 编辑
摘要: http://xiang.lf.blog.163.com/blog/static/127733322201242611158750/ 阅读全文
posted @ 2013-04-12 14:37 语辰 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 由于主从数据不一致,并且之前删除了主数据库上的binlog日志,只能选择在主服务器上全备份,然后source到从服务器.步骤如下1.在主服务器上执行:mysqldump -uroot 数据库名 > 存放导出数据的文件(自己随便定义)执行完命令之后一直报如下错误:# mysqldump -uroot ui > /tmp/ui.sqlmysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the ma 阅读全文
posted @ 2013-04-12 14:03 语辰 阅读(2017) 评论(0) 推荐(0) 编辑
摘要: # pt-table-checksum --nocheck-replication-filters --databases=ua --replicate=ua.checksums --create-replicate-table --host=172.16.11.170 --port 3306 -uroot TS ERRORS DIFFS ROWS CHUNKS SKIPPED TIME TABLE04-12T09:52:56 0 0 0 1 0 1.105 ua.bak04-12T09:52:57 0 0 0 1 0 0.365 ua.heartbeat04-12T09:52:57 0 1 阅读全文
posted @ 2013-04-12 10:29 语辰 阅读(188) 评论(0) 推荐(0) 编辑
  2013年4月11日
摘要: NZ0AZ-8U055-WZ9T1-Z137K-9C779 阅读全文
posted @ 2013-04-11 18:58 语辰 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 情况,从服务器停宕机的时候对主服务器进行了写操作,当从服务器启动起来之后,show slave status的时候,发现Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'解决步骤:查看主服务器的file和position,然后在从服务器上执行stop slave;change master to master_host='172.16. 阅读全文
posted @ 2013-04-11 17:50 语辰 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 实验环境:主从复制,一主,一从 master:localhost slave:172.16.21.164因为是测试环境,两台服务器,都没有为服务器设置密码1.检查两个服务器上的配置文件pt-config-diff h=localhost ,u=root h=172.16.21.164,u=root 阅读全文
posted @ 2013-04-11 17:14 语辰 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 步骤:1.perl Makefile.PL2.make3.make test4.make installDESCRIPTIONThis document describes the installation and configuration of DBD::mysql, the Perl DBI driver for the MySQL database. Before reading on, make sure that you have the prerequisites available: Perl, MySQL and DBI. For details see the separa 阅读全文
posted @ 2013-04-11 17:08 语辰 阅读(669) 评论(0) 推荐(0) 编辑