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

Gorm cann't connect Doris #7102

Closed
Cookiery opened this issue Jul 10, 2024 · 3 comments
Closed

Gorm cann't connect Doris #7102

Cookiery opened this issue Jul 10, 2024 · 3 comments
Assignees
Labels

Comments

@Cookiery
Copy link

GORM Playground Link

go-gorm/playground#1

Description

Gorm cann't not connect Doris

Gorm version:

gorm.io/driver/mysql v1.5.7
gorm.io/gorm v1.25.10
gorm.io/plugin/dbresolver v1.5.0

example code:

Settings.Doris.DSN = fmt.Sprintf(`%v:%v@tcp(%v)/%v?charset=utf8mb4&parseTime=True&loc=Local`,
		Settings.Doris.UserName, Settings.Doris.Password, Settings.Doris.Host, Settings.Doris.DBName)

var DorisDB *gorm.DB
log.Infof("Init doris connection...")
DorisDB, err = gorm.Open(mysql.Open(config.Settings.Doris.DSN), &gorm.Config{Logger: newLogger})
if err != nil {
    return fmt.Errorf("connect doris fail: %s", err.Error())
}

error: error connect doris fail: invalid connection

@github-actions github-actions bot added the type:missing reproduction steps missing reproduction steps label Jul 10, 2024
@Cookiery Cookiery changed the title Gorm cann't not connect Doris Gorm cann't connect Doris Jul 10, 2024
Copy link

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.ioSearch Before Asking

@n3s0
Copy link

n3s0 commented Aug 31, 2024

Maybe try taking a look at the mysql driver to see if there's anything missing from this.

https://github.com/go-gorm/mysql

Copy link

github-actions bot commented Sep 2, 2024

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.ioSearch Before Asking

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants