2014年8月15日
摘要: CREATEUSER'username'@'host'IDENTIFIEDBY'password'; 阅读全文
posted @ 2014-08-15 17:31 zitong 阅读(103) 评论(0) 推荐(0) 编辑
摘要: [root@test]# export PATH=$PATH:/usr/local/mysql/bin[root@test]# echo $PATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/... 阅读全文
posted @ 2014-08-15 16:35 zitong 阅读(4248) 评论(0) 推荐(0) 编辑
摘要: http://www.percona.com/software/percona-toolkityum -y install perl-DBIyum -y install perl-DBD-mysqlyum -y install perl-ExtUtils-MakeMakertar xzvf perc... 阅读全文
posted @ 2014-08-15 16:32 zitong 阅读(120) 评论(0) 推荐(0) 编辑
摘要: [root@test percona-toolkit-2.2.6]# perl Makefile.PLCan't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/pe... 阅读全文
posted @ 2014-08-15 16:30 zitong 阅读(832) 评论(0) 推荐(0) 编辑
摘要: yum -y install gcc gcc-c++ gcc autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl make cmakegroupadd mysqluseradd -r -g mysql... 阅读全文
posted @ 2014-08-15 16:17 zitong 阅读(140) 评论(0) 推荐(0) 编辑
摘要: scp -r /root/backupdb/2014-08-15(文件夹) root@192.168.1.98:/root(目录) 阅读全文
posted @ 2014-08-15 14:38 zitong 阅读(469) 评论(0) 推荐(0) 编辑
摘要: show slave status的过程中看到如下报错,经验告诉就是防火墙的问题。Last_IO_Errno: 2003 Last_IO_Error: error connecting to master 'test@192.168.127.129:3306' - re... 阅读全文
posted @ 2014-08-15 10:19 zitong 阅读(215) 评论(0) 推荐(0) 编辑
摘要: mysql> show databases;Ignoring query to other databasemysql> exit想查看都有哪些数据库,执行命令的时候报Ignoring query to other database,郁闷的了不得,网上搜了一下,发现是我链接mysql的时候写错了。连... 阅读全文
posted @ 2014-08-15 09:49 zitong 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1/dev/sda2 /usr/lib/mysql ext3 noatime,nodiratime,data=writeback 0 12o_direct 选项3.xfs 文件系统4cat /proc/sys/vm/swappiness5.sync_binlog6.innodb_flush_log_... 阅读全文
posted @ 2014-08-15 06:42 zitong 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 为啥使用innodb_flush_method=o_direct 就能减轻io压力呢 阅读全文
posted @ 2014-08-15 06:32 zitong 阅读(643) 评论(0) 推荐(0) 编辑