原始文献 / 论坛帖 / Re: Having problems specifing -datadir
Re: Having problems specifing -datadir
Bitcointalk · 2010-07-28 20:58:26 UTC
AuthorSatoshi Nakamoto
TitleRe: Having problems specifing -datadir
Date2010-07-28 20:58:26 UTC
ForumBitcointalk · 原文
我复现了这个问题。数据库不喜欢相对路径。
"bitcoind -datadir=./subdir getinfo" 对运行中的守护进程有效,但以 "bitcoind -datadir=./subdir" 启动守护进程就会报那个异常。
我想我们应该在传给数据库之前先解析出完整路径。
看来你是第一个用相对路径使用 -datadir 的人。
英文原文
It was able to reproduce this. The database doesn't like the relative path.
"bitcoind -datadir=./subdir getinfo" works against a running daemon, but trying to start the daemon as "bitcoind -datadir=./subdir" gets that exception.
I guess we should resolve the full path before passing it to the database.
It looks like you were the first one to ever use -datadir with a relative path.
