We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ go build &&./GoMusic go: downloading gorm.io/gorm v1.25.5 go: downloading gorm.io/driver/mysql v1.5.2 go: downloading go.uber.org/zap v1.26.0 go: downloading github.com/gin-gonic/gin v1.9.1 go: downloading github.com/gin-contrib/cors v1.4.0 go: downloading github.com/go-sql-driver/mysql v1.7.1 go: downloading github.com/robertkrimen/otto v0.2.1 go: downloading github.com/go-redis/redis/v8 v8.11.5 go: downloading github.com/jinzhu/now v1.1.5 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading gopkg.in/sourcemap.v1 v1.0.5 go: downloading github.com/gin-contrib/sse v0.1.0 go: downloading golang.org/x/net v0.15.0 go: downloading go.uber.org/multierr v1.10.0 go: downloading github.com/go-playground/validator/v10 v10.14.0 go: downloading github.com/ugorji/go/codec v1.2.11 go: downloading golang.org/x/sys v0.12.0 go: downloading github.com/leodido/go-urn v1.2.4 go: downloading github.com/go-playground/universal-translator v0.18.1 go: downloading github.com/gabriel-vasile/mimetype v1.4.2 go: downloading golang.org/x/crypto v0.13.0 go: downloading github.com/go-playground/locales v0.14.1 2025/02/17 12:50:32 /Users/xDeveloper/Repos/others/GoMusic/repo/db/mysql.go:17 [error] failed to initialize database, got error dial tcp 127.0.0.1:3306: connect: connection refused 2025-02-17T12:50:32.437+0800 ERROR log/log.go:66 数据库连接失败:dial tcp 127.0.0.1:3306: connect: connection refused GoMusic/misc/log.Errorf /Users/chenggeng/Developer/Repos/others/GoMusic/misc/log/log.go:66 GoMusic/repo/db.init.0 /Users/chenggeng/Developer/Repos/others/GoMusic/repo/db/mysql.go:19 runtime.doInit /opt/homebrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:6329 runtime.doInit /opt/homebrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:6306 runtime.doInit /opt/homebrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:6306 runtime.doInit /opt/homebrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:6306 runtime.main /opt/homebrew/Cellar/go/1.19.5/libexec/src/runtime/proc.go:233 panic: dial tcp 127.0.0.1:3306: connect: connection refused goroutine 1 [running]: GoMusic/repo/db.init.0() /Users/chenggeng/Developer/Repos/others/GoMusic/repo/db/mysql.go:20 +0x258 I [12:50:32] /Users/chenggeng/Developer/Repos/others/GoMusic [0] 2
it seems to require to connect to a DB, which is not mentioned in Readme
The text was updated successfully, but these errors were encountered:
Sorry for the late reply. The DDL statement is as follows, and I will add it to the README document later.
create table go_music.net_easy_songs ( id bigint unsigned auto_increment primary key, created_at datetime(3) null, updated_at datetime(3) null, deleted_at datetime(3) null, name varchar(512) null, exist tinyint unsigned default '1' null, constraint name unique (name) ); create index idx_net_easy_songs_deleted_at on go_music.net_easy_songs (deleted_at);
Sorry, something went wrong.
No branches or pull requests
it seems to require to connect to a DB, which is not mentioned in Readme
The text was updated successfully, but these errors were encountered: