摘要: 1.环境:E3DDBA11:172.16.13.111 --SlaveE3DDBA12:172.16.13.112 --MasterMysql版本均为mysql Ver 14.14 Distrib 5.1.61, for redhat-linux-gnu (x86_64) using readline 5.1[wh42@e3ddba11 etc]$ uname -aLinux e3ddba11 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux[wh42@e3dd... 阅读全文
posted @ 2014-04-02 15:24 Wison-Ho 阅读(196) 评论(1) 推荐(0) 编辑
摘要: 环境:[wh42@e3ddba14 ABS_CORP]$ cat /etc/redhat-releaseCentOS release 6.3 (Final)[wh42@e3ddba14 ABS_CORP]$ uname -aLinux e3ddba14 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux--安装Mysql:首先准备好mysql group和user[wh42@e3ddba12 ~]$ sudo groupadd mysqlgroupadd: cannot 阅读全文
posted @ 2014-04-02 13:39 Wison-Ho 阅读(208) 评论(1) 推荐(0) 编辑
摘要: 根据操作系统版本,下载对应版本的xtrabackup tar包。注:选择版本时,不一定要选择最新的。---要根据我们Mysql的版本选择对应的xtrabackup软件版本(我最开始选择的是2.1版本的xtrabackup,但是在执行的时候就有报错,所以最后才会选择到2.0.8版本的xtrabackupinnobackupex: Error: Support for MySQL 5.1 with builtin InnoDB (not the plugin) was removed in Percona XtraBackup 2.1. The last version to support My 阅读全文
posted @ 2014-03-27 10:23 Wison-Ho 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: 使用yum安装mysql之后,一直无法进入mysql。一直报错access denied for user 'root'@'localhost'解决办法:进入bin目录,执行$ sudo service mysqld stop$ sudo mysqld_safe --user=mysql --skip-grant-tables --skip-networking $ mysql -u root mysqlmysql> UPDATE user SET Password=PASSWORD('newpassword') where USER=&# 阅读全文
posted @ 2014-03-26 11:42 Wison-Ho 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 某些时候,在同步链的Subscriber端的系统SP(dbo.sp_MSins_xxx,dbo.sp_MSupd_xxx,dbo.sp_MSdel_xxx)会出现丢失的情形,最终导致replication报错。之前一般做法是,重新配置replication,但是这样费时费力。之后有发现存在一个系统的SP,可以产生对应的这些系统SP。我们将之拿到Subscriber对应DB中去执行即可。exec sp_scriptpublicationcustomprocs @publication = N'tblUserInfo'---Publication_Name 阅读全文
posted @ 2013-12-21 14:35 Wison-Ho 阅读(231) 评论(2) 推荐(0) 编辑