I’m trying to create an external base and have Meteor connect with that - ultimately I want this to be on a shared network drive.
I tried creating the database with:
mkdir -p /data/db_meteor
sudo chmod 0755 /data/db_meteor
sudo chown $USER /data/db_meteor
Which all looks fine… But then when I tell meteor to connect to that database, I use:
MONGO_URL=mongodb://localhost:27017/data/db_meteor meteor
Then I get an error saying 'More than 1 database name in URL'
W20170619-08:34:17.540(1)? (STDERR) /Users/michaelbattcock/.meteor/packages/meteor-tool/.1.4.3_1.10pxpug++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20170619-08:34:17.550(1)? (STDERR) throw(ex);
W20170619-08:34:17.551(1)? (STDERR) ^
W20170619-08:34:17.552(1)? (STDERR)
W20170619-08:34:17.552(1)? (STDERR) Error: More than 1 database name in URL
W20170619-08:34:17.552(1)? (STDERR) at module.exports (/Users/michaelbattcock/.meteor/packages/npm-mongo/.2.2.16_1.w679h1++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/url_parser.js:126:13)
W20170619-08:34:17.553(1)? (STDERR) at connect (/Users/michaelbattcock/.meteor/packages/npm-mongo/.2.2.16_1.w679h1++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongo_client.js:289:16)
W20170619-08:34:17.553(1)? (STDERR) at Function.MongoClient.connect (/Users/michaelbattcock/.meteor/packages/npm-mongo/.2.2.16_1.w679h1++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongo_client.js:113:3)
W20170619-08:34:17.553(1)? (STDERR) at new MongoConnection (packages/mongo/mongo_driver.js:175:11)
W20170619-08:34:17.554(1)? (STDERR) at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
W20170619-08:34:17.554(1)? (STDERR) at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
W20170619-08:34:17.554(1)? (STDERR) at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
W20170619-08:34:17.555(1)? (STDERR) at new Mongo.Collection (packages/mongo/collection.js:99:40)
W20170619-08:34:17.555(1)? (STDERR) at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
W20170619-08:34:17.555(1)? (STDERR) at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)