支持 H2 数据库 #150

Closed
conanca opened this Issue Dec 26, 2012 · 9 comments

Projects

None yet

2 participants

@conanca
conanca commented Dec 26, 2012

mysql耗内存相对还是比较大的,而h2数据库可以基本兼容mysql的语句,也支持transaction isolation
如果b3log-solo能使用h2数据库,那么用于低配的VPS上架设访问量并不大的个人博客那就太棒了。

P.S.
我在B3log Solo 0.5.5 for MySQL,尝试配置使用h2,结果在初始化的时候,报这个错误:

{"sc":false,"msg":"Initailize B3log Solo error: org.h2.jdbc.JdbcSQLException: Table "STATISTIC" not found; SQL statement:insert into statistic(statisticBlogViewCount,statisticPublishedBlogArticleCount,statisticPublishedBlogCommentCount,statisticBlogCommentCount,oId,statisticBlogArticleCount) value (?,?,?,?,?,?) [42102-170]"}

@88250
Member
88250 commented Dec 26, 2012

你指的应该是 H2 独立进程那种吧?

@conanca
conanca commented Dec 27, 2012

嵌入式和Server式用起来都是一样的
敬请参考此文:
http://conanca.iteye.com/blog/654679

@88250 88250 was assigned Dec 27, 2012
@88250
Member
88250 commented Dec 27, 2012

0.5.6 进行支持,加入子项目 solo-h2

@88250
Member
88250 commented Dec 27, 2012

Latke 框架支持:b3log/latke#16

@88250
Member
88250 commented Dec 27, 2012

基本开发完了,可以进行本地测试验证。

@conanca
conanca commented Dec 28, 2012

^o^

@88250
Member
88250 commented Jan 4, 2013

@conanca 目前一切正常么?

@conanca
conanca commented Jan 5, 2013

抱歉没来及看,给个编译好的我测测?

@88250
Member
88250 commented Jan 8, 2013

我关闭 issue 了 :-)

@88250 88250 closed this Jan 8, 2013
@88250 88250 added a commit that referenced this issue Feb 19, 2013
@88250 88250 支持 H2 数据库,#150 aed3eec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment