GithubHelp home page GithubHelp logo

Comments (3)

hanchuanchuan avatar hanchuanchuan commented on June 3, 2024 2

感谢你的详细反馈!
请升级到 v1.3.0-42版本后配置backup_tls参数并重试.

from goinception.

qimeinajie avatar qimeinajie commented on June 3, 2024

经过几天的研究,现已根本解决Backup数据库mysql在执行备份时的SSL报错问题。
修改几个文件,session/core.go,session/session_inception.go,session/conn.go,cmd/importer/db.go
找到对应的数据库连接串:'addr := fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=%s&p........'
在末端加上 ‘tls=skip-verify’,加完的结果例子如下

    addr := fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=%s&parseTime=True&loc=Local&autocommit=1&maxAllowedPacket=%d&tls=skip-verify"

即可解决备份时的时候,SSL链接报错的问题。

由于本人对Go语言不熟悉,不敢提PR,目前只是粗暴地直接加tls在所有需要连接数据库的位置,建议哪位大神可以将改配置添加到与backup-host/backup-port/username/password..那个配置一起,作为一个可配参数。
期待这个问题,早日得到支持,感恩

from goinception.

stale avatar stale commented on June 3, 2024

由于此问题没有最近的活动,因此已被自动标记为陈旧。如果没有进一步的活动,会作为不活跃issue关闭。感谢你对本项目的贡献。 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from goinception.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.