Mongodb restore and Run MongoDB with Laravel

 Run after below settings:

mongorestore -d wbtourism_live dump/homestore


database files store:

store the file database list of json into, 

C:\Program Files\MongoDB\Server\6.0\bin\dump\homestore

where homestore is the my local exported data


for mongodb:

test> use wbtourism_live

switched to db wbtourism_live

wbtourism_live> show tables



extension=php_ftp.dll

extension=php_mongodb.dll


php_mongodb.dll file paste in php/ext inside xampp file.


MongoDB Command Line Database Tools Download

for restore and other command line tools.


for .env

DB_CONNECTION=mongodb

DB_HOST=127.0.0.1

DB_PORT=3306

DB_DATABASE=wbtourism_live

DB_USERNAME=

DB_PASSWORD=


MONGO_DB_HOST=127.0.0.1 #local

MONGO_DB_PORT=27017

MONGO_DB_DATABASE=wbtourism_live

MONGO_DB_USERNAME=

MONGO_DB_PASSWORD=


Comments

Popular posts from this blog

Password Encryption in Express using bcryptjs module , Password Decryption in Express using bcryptjs module. Login API using Express with password encryption . Example . Testing with postman

Express Install , MVC architecture concept , Nodemon install , express server configuration , Postman Install , basic get() , post() operations in api and testing using postman.

Routing concept in Express , Controller Concept in Express , Get() , Post() routing in express , Testing in postman. Mongoose (ODM) install , Connectivity with Mongodb using mongoose.Connect() . Examples