Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提交阿里云RDS上线单报错 #92

Open
jiaminxu opened this issue Sep 6, 2018 · 9 comments
Open

提交阿里云RDS上线单报错 #92

jiaminxu opened this issue Sep 6, 2018 · 9 comments

Comments

@jiaminxu
Copy link

jiaminxu commented Sep 6, 2018

我用阿里云账号提交sql 上线工单 提示
The backup dbname 'rm-xxx.mysql.rds.aliyuncs.com-3306-xxx' is too long.
老哥有遇到过么
image

@hhyo
Copy link
Contributor

hhyo commented Sep 7, 2018

@jiaminxu inception本身限制,建议使用cname或者ip连接

@2002wmj
Copy link

2002wmj commented Mar 6, 2019

我也遇到这个问题,RDS已经是cname了,不能缩短。

@jiaminxu
Copy link
Author

jiaminxu commented Mar 6, 2019 via email

@2002wmj
Copy link

2002wmj commented Mar 6, 2019

有没有办法加大这个限制?目前这个限制感觉太小了点。

@hhyo
Copy link
Contributor

hhyo commented Mar 6, 2019

有没有办法加大这个限制?目前这个限制感觉太小了点。

可以尝试修改mysql_get_remote_backup_dbname的方法,只要做到唯一就没问题,规则可以自己定制:
https://github.com/hhyo/inception/blob/master/sql/sql_parse.cc#L508

@2002wmj
Copy link

2002wmj commented Mar 6, 2019

这个很麻烦了,我找到个办法,修改/etc/resolv.conf里面的search即可。

@jokefaker
Copy link

jokefaker commented May 5, 2019

@2002wmj
你是 docker 运行的吗?我在 docker 里面修改了 /etc/resolv.conf 貌似没用...

@2002wmj
Copy link

2002wmj commented May 8, 2019

@2002wmj
你是 docker 运行的吗?我在 docker 里面修改了 /etc/resolv.conf 貌似没用...

是的,加一个search就可以了。

@fengbinddr
Copy link

fengbinddr commented Oct 24, 2019

感谢 2002wmj 提供思路。 环境是archer docker安装,
步骤:1进入archery容器中修改/etc/resolv.conf,增加1行,search mysql.rds.aliyuncs.com ,inception容器也一样修改。
2 在Django 后台中,修改 实例配置>实例连接 把RDS的域名去掉,OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants