-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant access the database via the input image entry #4
Comments
So there are a few things that I think you might have done wrong:
PS : Make sure that you do a |
thanks for the reply please don't close the thread, just give me a couple days please because im a bit busy with exams and it takes me time to try the solution and give some feedback, but thanks anyway kind sir |
There is an easy way to do this.
Explanation of the commands above
|
the problem is that comand prompt doesn't know mongorestore at all, therefore i tried to manually add the database/collection |
Can you please share the error here when you do |
okay so let me go through this whole step with you once and for all to clarify it and not make any troubles for you anymore... first i downloaded the image database and named it "Corel" with 10k images, put it into a folder and all those bson/json files as well and the pre-written code of yours, and then i have to run exactly this "cd dump/CDHCorel/ (which is already done with the command so i have to run the next command of db-name right?) mongorestore --db db_name . (and for this i dont have to replace db_name with Corel or anything right?) and then this is where it says the most common warning of (( 'mongorestore' is not recognized as an internal or external command, operable program or batch file.)) and i guess this is where my main problem lies on, i have run the robo 3t and have connected to my local server and have stored a CDH database with only the 2 json collection, so is it wrong anything i do in these things already? |
C:\Program Files\MongoDB\Server\4.2\bin>mongod you told me to keep it running in the background while i do it, and then i shouldnt change the db = [] in the code right? |
I think you have not pulled the latest GitHub version of the code. Did you do a git pull origin master before executing the code ? |
im sorry but i dont know how to do that, i mean i just downloaded this git 2.27 and there's this command prompt in it, so i should just put "git pull origin master" that's all? or should i cd to the repository folder and then do it? but it wants a .git file but the repository only got a .gitgnore file, is that it??? |
So here is a quick video for you which can help |
my problem was ridiculous!!!! the bin folder in PATH was wrong because i manually edited it for some other project into Cmake/bin and i just had to restore it back to mongodb/bin and it’s now solved im so sorry for all the trouble tho, but this solution was okay when i did run the mongod.exe from prompt after i solved the bin issue, thanks a lot for taking your time to solve my problem even though you must’ve got a crazy busy schedule, never forget your kindness sir! 🙏🏻🙏🏻🙏🏻 |
i can't simply access the added CDH json database and Corel image database viah the 'CBIR Using Color Difference Histogram - Retrieval.ipynb' code, i did exactly as you said, saved the database in the mongodb and the folder CDH with the necessary json files are stored there, and then i still get the error below, i dont know what else should i do? and also the images are all separated by _ in middle but you just entered 690 and accessed the image easily, did you rename all of them manually?
The text was updated successfully, but these errors were encountered: