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

go run main.go fails #186

Open
0pcom opened this issue Aug 14, 2020 · 1 comment
Open

go run main.go fails #186

0pcom opened this issue Aug 14, 2020 · 1 comment

Comments

@0pcom
Copy link

0pcom commented Aug 14, 2020

[user@linux  ~]$ cd $GOPATH/src/github.com/qor/qor-example
[user@linux  qor-example]$ go run main.go
Failed to find configuration config/application.yml, using example file config/application.example.yml
Failed to find configuration config/smtp.yml, using example file config/smtp.example.yml
Failed to find configuration config/database.yml, using example file config/database.example.yml
WARNING: AssetFS is used before overwrite it!
goroutine 1 [running, locked to thread]:
runtime/debug.Stack(0x2e, 0x0, 0x0)
	/usr/lib/go/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
	/usr/lib/go/src/runtime/debug/stack.go:16 +0x22
github.com/qor/assetfs.SetAssetFS(0x7fdb390e4910, 0x1b6cbc0)
	/home/user/go/src/github.com/qor/assetfs/assetfs.go:33 +0xc5
github.com/qor/qor-example/config/bindatafs.init.0()
	/home/user/go/src/github.com/qor/qor-example/config/bindatafs/bindatafs.go:26 +0x5d
panic: Error 1698: Access denied for user 'root'@'localhost'

goroutine 1 [running]:
github.com/qor/qor-example/config/db.init.0()
	/home/user/go/src/github.com/qor/qor-example/config/db/db.go:49 +0x716
exit status 2

I followed the earlier steps in the quickstart. I am using mariadb but I don't think that's the issue.

@raven-chen
Copy link
Member

Hi @0pcom

the error message is "panic: Error 1698: Access denied for user 'root'@'localhost'"
check whether your db has this root account and it is accessible to the given database.

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

2 participants