mac mongo版本降级后无法启动,日志错误如下:
2020-11-11T23:09:39.744+0800 E STORAGE [initandlisten] WiredTiger (-31802) [1605107379:744746][7046:0x11559ddc0], file:WiredTiger.wt, connection: unable to read root page from file:WiredTiger.wt: WT_ERROR: non-specific WiredTiger error
2020-11-11T23:09:39.744+0800 E STORAGE [initandlisten] WiredTiger (0) [1605107379:744780][7046:0x11559ddc0], file:WiredTiger.wt, connection: WiredTiger has failed to open its metadata
2020-11-11T23:09:39.744+0800 E STORAGE [initandlisten] WiredTiger (0) [1605107379:744796][7046:0x11559ddc0], file:WiredTiger.wt, connection: This may be due to the database files being encrypted, being from an older version or due to corruption on disk
2020-11-11T23:09:39.744+0800 E STORAGE [initandlisten] WiredTiger (0) [1605107379:744810][7046:0x11559ddc0], file:WiredTiger.wt, connection: You should confirm that you have opened the database with the correct options including all encryption and compression options
2020-11-11T23:09:39.752+0800 I - [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error
2020-11-11T23:09:39.752+0800 I STORAGE [initandlisten] exception in initAndListen: 28595 -31802: WT_ERROR: non-specific WiredTiger error, terminating
2020-11-11T23:09:39.753+0800 I CONTROL [initandlisten] dbexit: rc: 100
删掉原来的数据文件就好了,
默认目录:/usr/local/var/mongodb