Chinaunix首页 | 论坛 | 博客
  • 博客访问: 371334
  • 博文数量: 166
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1640
  • 用 户 组: 普通用户
  • 注册时间: 2015-05-05 11:44
个人简介

文章不在长,坚持不懈记录下努力前行的脚步

文章分类

全部博文(166)

文章存档

2017年(19)

2016年(59)

2015年(88)

我的朋友

分类: Mysql/postgreSQL

2016-11-21 19:07:28

gh-ost
====================================================================
1.
2016-10-19 15:06:09 DEBUG Looking for master on 192.168.110.133:3306
2016-10-19 15:06:09 DEBUG Master of 192.168.110.133:3306 is 192.168.110.137:3306
2016-10-19 15:06:09 FATAL There seems to be a master-master setup at 192.168.110.137:3306. This is unsupported. Bailing out
reset slave all;

2.
2016-10-19 15:10:41 FATAL It seems like this migration attempt to run directly on master. Preferably it would be executed on a replica (and this reduces load from the master). To proceed please provide --allow-on-master
添加参数--allow-on-master

3.
2016-10-19 15:21:24 FATAL Table `_room_today_cost_detail_test_gho` already exists. Panicking. Use --initially-drop-ghost-table to force dropping it, though I really prefer that you drop it or rename it away

./gh-ost --initially-drop-ghost-table --conf=/etc/my.cnf --host '192.168.110.133' --execute --debug --database "mydb" --allow-on-master --table "room_today_cost_detail_test" --assume-rbr  --alter "add column cost_value int(11)" --alter "ADD COLUMN add_tst varchar(30)"


4.
./gh-ost --user "admin" --password "mysql123" --initially-drop-ghost-table --initially-drop-old-table --initially-drop-socket-file --debug --database "mydb"  --table "room_today_cost_detail_test" --switch-to-rbr --alter "add column cost_value int not null default 0" --execute
阅读(1002) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~