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

初始化的时候,选择mysql不会导入数据库文件! #50

Closed
maxbad opened this issue Nov 23, 2023 · 6 comments
Closed

初始化的时候,选择mysql不会导入数据库文件! #50

maxbad opened this issue Nov 23, 2023 · 6 comments

Comments

@maxbad
Copy link

maxbad commented Nov 23, 2023

空数据库的时候, 在执行 show tables 的时候会返回err :missing destination name Tables_in_email_server in *[]*db.tables

@maxbad
Copy link
Author

maxbad commented Nov 23, 2023

发现了问题,好像数据库表名称不能自定义.这里写死了,只能是pmail

type tables struct {
	TablesInPmail string `db:"Tables_in_pmail"`
}

@maxbad
Copy link
Author

maxbad commented Nov 23, 2023

还有就是 server/config/tables/mysql/data/user.sql 和其他几个都是空文件, 导入的时候也会触发panic, 应该要过滤掉空文件.

@Jinnrry
Copy link
Owner

Jinnrry commented Nov 23, 2023

mysql show tables返回字段名没法改,只能写死。配置的时候我记得我专门说明过必须叫pmail

@Jinnrry Jinnrry mentioned this issue Nov 23, 2023
@maxbad
Copy link
Author

maxbad commented Nov 23, 2023

如果必须固定数据库表名, 那么界面最好是搞只4个编辑框,填写数据库IP,端口,账号,密码, 表名不可修改,固定pmail

@Jinnrry
Copy link
Owner

Jinnrry commented Nov 23, 2023

panic重发了一个2.3.4版本,已经修复了。交互等下次有空我再重新设计下

@maxbad
Copy link
Author

maxbad commented Nov 23, 2023

ok了

@maxbad maxbad closed this as completed Nov 23, 2023
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