How can I change my data store directory and configure MongoDB

Published on

The short answer is that the –dbpath parameter in MongoDB will allow you to control what directory MongoDB reads and writes it’s data from. mongod –dbpath /usr/local/mongodb-data Would start mongodb and put the files in /usr/local/mongodb-data. Depending on your distribution and MongoDB installation, you can also configure the mongod.conf file to do this automatically: # … Continue reading How can I change my data store directory and configure MongoDB

How to use an node.js module to get and process data from my MongoDB database

Published on

The suggestion about mongoose is great and you can look into it, however I think you’ve already done the job with the fetching of the data from the db. You just need to access it in your main node flow. You can try this: module.exports.generateNav = function() { MongoClient.connect(process.env.MONGO_URL, function(err, db) { assert.equal(err, null); var … Continue reading How to use an node.js module to get and process data from my MongoDB database

the ‘microsoft.ace.oledb.12.0’ provider is not registered on the local machine

Published on

Situations: When you try connecting Access database in visual studio. importing excel file into SQL Server OS: Windows 2008 R2 Error: The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine. (System.Data) Solution; (If you have Office installed in the system you may not come across this) Install the following from the link given below. (Access Database … Continue reading the ‘microsoft.ace.oledb.12.0’ provider is not registered on the local machine