0
我试图在Linux中创建一个数据库,其中:H2错误[90011-187]
- 它不是在用户家
- 不要求客户告知整个服务器路径, db文件。
- 需要与bin目录不同以防止核心转储失败。
文档说,你可以使用这样的URL:
jdbc:h2:file:data/sample
,但这个简单的URL不起作用,并得到下列错误:
Exception in thread "main" org.h2.jdbc.JdbcSQLException: A file path
that is implicitly relative to the current working directory is not
allowed in the database URL
"jdbc:h2:file:db/datadb;TRACE_LEVEL_FILE=3". Use an absolute path,
~/name, ./name, or the baseDir setting instead. [90011-187]
观察:我知道你可以使用“。”,但在这种情况下,客户端的网址是什么?