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

数据库怎么初始化? #58

Open
zDream opened this issue Jul 18, 2018 · 5 comments
Open

数据库怎么初始化? #58

zDream opened this issue Jul 18, 2018 · 5 comments

Comments

@zDream
Copy link

zDream commented Jul 18, 2018

看你这个框架还不错,我没用过sqlite,想问下怎么初始化数据库? 没装过sqlite数据库,但运行怎么不报错?

@zDream
Copy link
Author

zDream commented Jul 19, 2018

sqlite没用过,我直接改用mysql了,数据导入,直接就能用。

@Witnin
Copy link

Witnin commented Aug 16, 2018

how can i change sqlite to mysql

@zDream
Copy link
Author

zDream commented Aug 21, 2018

You don't have to change it to mysql, you can just run it, you have an SQL file, you can change it to mysql

@Judy123LD
Copy link

You don't have to change it to mysql, you can just run it, you have an SQL file, you can change it to mysql

是把数据导入MySQL后,只修改pom.xml和application.properties就可以了吗?别的接口的代码不用改吗?

@calmpeng
Copy link

calmpeng commented Apr 2, 2020

You don't have to change it to mysql, you can just run it, you have an SQL file, you can change it to mysql

是把数据导入MySQL后,只修改pom.xml和application.properties就可以了吗?别的接口的代码不用改吗?

项目的 数据是根据 schema 来的。如果要使用MySQL,驱动要换一下,加上插入的sql的语法 要变一些 时间(now() ),其他的接口不用动

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

4 participants