标签:rem source inner server restart nand art dead extc
【**前情提要**】最近开始搭建博客,在本地调试的时候使用的数据库是h2,但是调试的时候需要查看数据库,本文也由此而来。 --- 下面是我用到的方法: 1. 使用IDEA的Database连接工具,具体操作方法就是按照要求配置连接url,用户名和密码即可。具体操作见下图: ![h2ideadatabase配置](https://img2018.cnblogs.com/blog/1035487/201908/1035487-20190810230145453-1574325771.png) 查询结果: ![h2ideadatabase查询结果](https://img2018.cnblogs.com/blog/1035487/201908/1035487-20190810230149100-32480254.png) 但是但是这个时候启动**项目会报错**: ```java org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-197] at org.h2.message.DbException.getJdbcSQLException(DbException.java:357) ~[h2-1.4.197.jar:1.4.197] at org.h2.message.DbException.get(DbException.java:168) ~[h2-1.4.197.jar:1.4.197] at org.h2.mvstore.db.MVTableEngine$Store.convertIllegalStateException(MVTableEngine.java:188) ~[h2-1.4.197.jar:1.4.197] at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:168) ~[h2-1.4.197.jar:1.4.197] at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:100) ~[h2-1.4.197.jar:1.4.197] at org.h2.engine.Database.getPageStore(Database.java:2538) ~[h2-1.4.197.jar:1.4.197] at org.h2.engine.Database.open(Database.java:709) ~[h2-1.4.197.jar:1.4.197] at org.h2.engine.Database.openDatabase(Database.java:286) ~[h2-1.4.197.jar:1.4.197] at org.h2.engine.Database.标签:rem source inner server restart nand art dead extc
原文地址:https://www.cnblogs.com/eelve/p/11333392.html