-
Notifications
You must be signed in to change notification settings - Fork 383
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
must have one register DataBase alias named default
#12
Comments
我的也是这样,求怎么解决的 |
时间长了,记不清当时是怎么解决的了,但应该还是配置写的不对导致的。 |
mysql配置确认没有问题,但是启动也报这个错误
|
有大佬解决这个问题吗? |
我的问题已经解决了,安装说明中少写了一步,需要go build编译产生启动文件,原来的启动文件是无法使用的,导致启动报这个错误
|
github.com/lisijie/webcron/app/mailapp/mail/mail.go:38:6: undefined: beego.Error 请问go build 报这个错误是什么原因? |
是由于mysql server 默认连接的是127.0.0.1, |
错误:
[root@408cb45436b1 opt]# /home/go/bin/webcron
[ORM]register db Ping
default
, dial tcp :3306: getsockopt: connection refusedmust have one register DataBase alias named
default
mysql -hX.X.X.X -uXXX -p 可以通
请问怎么解决?
环境:
Linux version 3.10.0-327.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015
go version go1.6.2 linux/amd64
The text was updated successfully, but these errors were encountered: