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