Skip to content
Related Articles

Related Articles

How to Install MongoDB to WAMP?

View Discussion
Improve Article
Save Article
  • Last Updated : 05 Jul, 2022

Everyone has heard about Mongo DB. MongoDB is an open-source tool that supports NoSQL. It is document-oriented not object-oriented. MongoDB is usually used when large data is set to manage information. Here we discuss the installation of MongoDB on Wamp. Before we know about what is Mongo DB and its features. Let’s discuss this shortly. 

Mongo DB

Mongo DB is an open-source NoSQL information-based administration program. NoSQL is utilized as an alternative option to a traditional relational database. Mongo is quite useful for working with large sets of distributed data. Mongo DB is used to manage document-oriented information, and store or receive data. 

Features of Mongo DB 

Below we listing the features of Mongo DB,

  1. Ad-hoc queries for optimization of real-time analysis. 
  2. Indexing for better query optimization.
  3. Replication for data stability.
  4. Sharding.
  5. Load balancing.

Requirements 

Kindly install,

  1. PHP extension 
  2. wamp server 
  3. Apache

Steps to Install Mongo DB on WAMP

Below is the list of instructions that follow to install the MongoDB driver on the wamp server. 

  • Download .delete file                              

Download the .dll file from this link https://pecl.php.net/package/mongo/1.6.11/windows, remember that version that you download is compatible with your PHP version. Unzip the folder.                     

Downloading-.delete-file

 

  • Put .dll file into PHP extension            

Copy .dll file and paste into php extension directory.

Putting-file-into-PHP-extension

 

  • Open the php.ini file                                          

Open the php.ini file for adding the mongo DB extension. 

  • Enable php_mongo.dll extension            

Search below line into php.ini file,                  

extension=php_mongo.dll                                   

If found then okay, otherwise add this line into php.ini. Don’t forget to remove semicolons. 

Enabling-php_mongo.dll-extension

 

Restart the wamp server                                  

Restart the wamp server, if found any error then mongo DB is not installed. 

  • Check whether drivers installed or not                  

After installation is done then open phpinfo() file to check mongo DB drivers.

Checking-installation-of-drivers

 

Conclusion 

By following the above steps you can able to install MongoDB drivers on the wamp server. I hope you clear all the steps and follow them as per the given order.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!