| Computers Forum Index » Computer - Databases - Berkeley » db_load: line 2: unexpected format... |
|
Page 1 of 1 |
|
| Author |
Message |
| Coonay... |
Posted: Wed Apr 15, 2009 10:14 am |
|
|
|
Guest
|
my ldap verions in widnows is 2.2.28
Berkeley DB version is 4.3.28,
in windows :
cmd>db_dump -f id2entry.dump id2entry
cmd>ftp id2entry.dump redhat.coonay.com
in linux:
#/usr/local/BerkeleyDB.4.7/bin/db_load -f radiaId.dump -h /var/opt/
ldap/ radiaId.bdb
db_load: line 2: unexpected format
how can i dump the bdb in window into linux?should i update the bdb to
4.7 in window in order for
that work?
thanks so much |
|
|
| Back to top |
|
|
|
| Coonay... |
Posted: Wed Apr 15, 2009 10:26 am |
|
|
|
Guest
|
On Apr 15, 6:14 pm, Coonay <fla... at (no spam) gmail.com> wrote:
Quote: my ldap verions in widnows is 2.2.28
Berkeley DB version is 4.3.28,
in windows :
cmd>db_dump -f id2entry.dump id2entry
cmd>ftp id2entry.dump redhat.coonay.com
in linux:
#/usr/local/BerkeleyDB.4.7/bin/db_load -f radiaId.dump -h /var/opt/
ldap/ radiaId.bdb
db_load: line 2: unexpected format
how can i dump the bdb in window into linux?should i update the bdb to
4.7 in window in order for
that work?
thanks so much
the first lines in radiaId.dump is :
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END |
|
|
| Back to top |
|
|
|
| Florian Weimer... |
Posted: Wed Apr 15, 2009 5:05 pm |
|
|
|
Guest
|
* Coonay:
Quote: the first lines in radiaId.dump is :
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?
I suspect you need to convert the line endings from CRLF to LF. |
|
|
| Back to top |
|
|
|
| Coonay... |
Posted: Thu Apr 16, 2009 4:00 am |
|
|
|
Guest
|
On Apr 15, 8:05 pm, Florian Weimer <f... at (no spam) deneb.enyo.de> wrote:
Quote: * Coonay:
the first lines in radiaId.dump is :
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?
I suspect you need to convert the line endings from CRLF to LF.
Florian :
what is hd?i cann't find it .
thanks |
|
|
| Back to top |
|
|
|
| Coonay... |
Posted: Thu Apr 16, 2009 4:01 am |
|
|
|
Guest
|
On Apr 15, 8:05 pm, Florian Weimer <f... at (no spam) deneb.enyo.de> wrote:
Quote: * Coonay:
the first lines in radiaId.dump is :
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?
I suspect you need to convert the line endings from CRLF to LF.
btw ,i transfer the dump using binary mode,should there is no CRLF |
|
|
| Back to top |
|
|
|
| Florian Weimer... |
Posted: Thu Apr 16, 2009 2:31 pm |
|
|
|
Guest
|
* Coonay:
Quote: On Apr 15, 8:05 pm, Florian Weimer <f... at (no spam) deneb.enyo.de> wrote:
* Coonay:
the first lines in radiaId.dump is :
VERSION=3
format=bytevalue
type=btree
duplicates=1
dupsort=1
db_pagesize=4096
HEADER=END
Can you post the output of "hd radiaId.dump | head"?
I suspect you need to convert the line endings from CRLF to LF.
btw ,i transfer the dump using binary mode,should there is no CRLF
No, the CRLF is would be gone if you used text mode instead of binary
mode.
Quote: what is hd?i cann't find it .
"hd" is a hex dump command. It allows you to check what type of line
endings are present. |
|
|
| Back to top |
|
|
|
|