Hướng dẫn install mongodb wamp
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 DBMongo 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,
Requirements Kindly install,
Steps to Install Mongo DB on WAMPBelow is the list of instructions that follow to install the MongoDB driver on the wamp server.
Download the .dll file from this linkhttps://pecl.php.net/package/mongo/1.6.11/windows, remember that version that you download is compatible with your PHP version. Unzip the folder.
Copy .dll file and paste into php extension directory.
Open the php.ini file for adding the mongo DB 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. Restart the wamp server Restart the wamp server, if found any error then mongo DB is not installed.
After installation is done then open phpinfo() file to check mongo DB 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. Cài đặt Mongodb và wamp chạy ứng dụng php đầu tiên Mongodb là một CSDL dạng NoSQL có không ràng buộc nói đơn giản là cơ sở dữ liệu mà không dùng mô hình dữ liệu quan hệ . B- cài đặt mongo_db.dll -phiên bản phù hợp với php hiện tại tại đây http://downloads.php.net/pierre/ sau khi chọn download file php_mongo.dll phù hợp copy vào thư mục của wamp C:\wamp\bin\php\php5.3.5\ext để wamp nhận biết cần mở php.ini tìm hay thêm dòng này vào reset lại wamp cấu hình ngắn gọn để gọi mongo vào mycomputer->properties ->environment variables -> tìm path và edit thêm C:\bin vào 1-khởi động mongod bằng cách mở cmd gõ vào mongod --dbpath C:/bin ok xong use data trong đó data là tên database cần tạo db.addUser("admin","pass") tạo username và pass db.game.save({user:"so1",pass:"pass"}) để tạo bảng game db.game.find() 3 Tạo 1 file php để thử insert dữ liệu vào xem sao
xem thử kết quả quản lý mongodb với rockmongo user nam và pass là admin |