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

部署问题 #40

Open
zlyuancn opened this issue Aug 1, 2019 · 6 comments
Open

部署问题 #40

zlyuancn opened this issue Aug 1, 2019 · 6 comments

Comments

@zlyuancn
Copy link

zlyuancn commented Aug 1, 2019

我在启动ppgo-job系统的时候, 收到如下错误
ppgo-job | [ORM]2019/08/01 14:22:48 register db Ping default, open usr/local/go/lib/time/zoneinfo.zip: no such file or directory
ppgo-job | must have one register DataBase alias named default
按照教程安装的, 教程上没有说明数据需要使用什么库名, 在app.conf中如何配置, 我创建了一个库名为ppgo_job3并且db.name = ppgo_job3. 还是报以上错误, 库名为ppgo_job2, default也是以上错误, 请问如何解决

@zlyuancn zlyuancn closed this as completed Aug 1, 2019
@zlyuancn
Copy link
Author

zlyuancn commented Aug 2, 2019

今天测试了下, 我数据库ip写对了(内网ip), 端口写对了(3306没有映射为别的端口), 密码写对了(没有任何特殊字符, 密码对比了n次), 还是出现了如下错误:
ppgo-job | [ORM]2019/08/02 09:56:10 register db Ping default, open /usr/local/go/lib/time/zoneinfo.zip: no such file or directory
ppgo-job | must have one register DataBase alias named default
ppgo-job exited with code 2

@zlyuancn zlyuancn reopened this Aug 2, 2019
@laiwahwing
Copy link

密码不用"或'括起来

@george518
Copy link
Owner

数据库连接有问题,beego框架是这样报错的

@hnlylmlzh
Copy link

我也是这样,估计windows下的,不能这样玩

@hnlylmlzh
Copy link

"PPGo_Job" /min PPGo_Job.exe
[ORM]2019/12/12 10:00:15 register db Ping default, open /usr/local/go/lib/time/zoneinfo.zip: The system cannot find the path specified.
must have one register DataBase alias named default

@CLannadZSY
Copy link

已找到解决办法

db.host = 127.0.0.1
db.user = username
db.password = password
db.port = 3306
db.name = "test"
db.prefix = pp_
# 时区修改如下, 即可在 windows 上运行
db.timezone = Local

image

@george518 建议在文档中特别注明一下
@hnlylmlzh 可以尝试一下, 是否可行

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

5 participants