Browsed by
Month: December 2016

[Resolved] Unclean shutdown detected Mongodb

[Resolved] Unclean shutdown detected Mongodb

[Resolved] Unclean shutdown detected Mongodb   Issue: 2016-12-21T10:15:12.400+0530 I CONTROL [main] 2016-12-21T10:15:12.402+0530 W CONTROL [main] 32-bit servers don’t have journaling enabled by default. Please use –journal if you want durability. 2016-12-21T10:15:12.403+0530 I CONTROL [main] 2016-12-21T10:15:12.414+0530 I CONTROL [main] Hotfix KB2731284 or later update is not installed, will zero-out data files 2016-12-21T10:15:12.420+0530 I CONTROL [initandlisten] MongoDB starting : pid=6620 port=27017 dbpath=c:\mongodb\data\db 32-bit host=Naveen-PC 2016-12-21T10:15:12.420+0530 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008 2016-12-21T10:15:12.420+0530 I CONTROL [initandlisten] db version v3.2.11-36-g1ab8780 2016-12-21T10:15:12.420+0530 I…

Read More Read More

1,195 total views, no views today

How to connect MongoDB with Java ?

How to connect MongoDB with Java ?

How to connect MongoDB with Java ?: MongoDB is a document based open source data model. It stores the unstructured data’s in a JSON format. In our earlier posts we have seen how to install mongodb on windows 7 and resolved some of the most common issues while installing mongodb in windows 7.   How to install mongodb on windows 7 ?     Requirements: mongo-java-driver (3.4.1 is the latest version when I am writing this post.)     Creating…

Read More Read More

866 total views, 1 views today

How to install mongodb on windows 7 ?

How to install mongodb on windows 7 ?

How to install mongodb on windows 7 ? Step 1: Download the MongoDB for windows 7   Download MongoDB windows binary files from here, For windows 7, Mongodb for windows 7 [Download the zip version not msi] For windows 2008+ (for windows 10 as well) Mongodb for Windows 2008+ or windows 10 (Size is around 232MB)   Step 2: Extract the folder. Extract the above downloaded zip file to mongodb folder in C drive.     Step 3: Create the…

Read More Read More

1,471 total views, 2 views today

[Resolved] connect@src/mongo/shell/mongo.js

[Resolved] connect@src/mongo/shell/mongo.js

[Resolved] connect@src/mongo/shell/mongo.js:   It is due to the incorrect start of mongodb engine, below links can help you to resolve this issue,   [Resolved] exception in initandlisten mongodb   [Resolved] W NETWORK [thread1] Failed to connect to 127.0.0.1     [Resolved] the default storage engine ‘wiredtiger’ is not available 940 total views, 2 views today

940 total views, 2 views today

[Resolved] W NETWORK [thread1] Failed to connect to 127.0.0.1

[Resolved] W NETWORK [thread1] Failed to connect to 127.0.0.1

[Resolved] W NETWORK  [thread1] Failed to connect to 127.0.0.1:   Once after the successful download and extraction of mongodb, I assume you kept all your extracted content in c drive mongodb folder.   So now your folder c:\mongodb looks like this, I created data\db folder as well inside the mongodb to store mongodb data’s manually.     Step 1: Open the terminal or command prompt and run the first mongod command to start the mongodb engine first,   mongod –dbpath…

Read More Read More

1,111 total views, 3 views today

[Resolved] exception in initandlisten mongodb

[Resolved] exception in initandlisten mongodb

[Resolved] exception in initandlisten mongodb:   Ensure you have done all the below steps, Extracted and kept the files something like mongodb (I consider that you kept in c drive) You may be created the folder for data/db as well in the mongodb (thay looks like this, c:\mongodb\data\db) After the above things you would have opened the terminal and tried running the below command, mongod –dbpath c:\mongodb\data\db 4. You would have got the error something like this, C:\mongodb\bin>mongod –dbpath c:\mongodb\data\db…

Read More Read More

1,221 total views, 2 views today

[Resolved] the default storage engine ‘wiredtiger’ is not available

[Resolved] the default storage engine ‘wiredtiger’ is not available

[Resolved] the default storage engine ‘wiredtiger’ is not available Due to the OS version/OS bit(32bit/64bit) mismatch of mongodb versions may cause this error.   Just run the below comment, then the issue will be resolved mostly. mongod –storageEngine=mmapv1 –dbpath c:\mongodb\data\db It will start the mongod engine without any issue now. You can keep this terminal and open one more terminal or command prompt and run the mongo command to start working with mongodb 🙂 I have pasted the screenshot below…

Read More Read More

1,568 total views, 2 views today

How to remove unwanted software’s from chrome ?

How to remove unwanted software’s from chrome ?

How to remove unwanted software’s from chrome ?   Almost everyone is suffering with the unwanted software’s in chrome particularly. When we want to download any songs/any software, then some ads/some junk unwanted software will come with download option. We used to click that without knowing, then those unwanted things would have been installed in the chrome browser.   Google has introduced some cleanup tool to sweep your PC of unwanted software’s. It can be downloaded from the below link,…

Read More Read More

615 total views, no views today

[Resolved] xampp MySQL does not start

[Resolved] xampp MySQL does not start

[Resolved] xampp MySQL does not start   Issue: Mysql does not starts in xampp.   Solution: If you recently changed anything in my.cnf file which is in the below path, C:\xampp\mysql\bin ensure you have reverted everything. Also make sure the below variables have this values only, innodb_log_file_size = 5M innodb_log_buffer_size = 8M If still issue then change the port 3307 from 3306 and try it.   Feel free to comment in the below section to help you better. 545 total views,…

Read More Read More

545 total views, no views today

Program to print pyramid numbers in java

Program to print pyramid numbers in java

Program to print pyramid numbers in java: Pyramid numbers are basically something like matrix to print the numbers in rows and columns. It has been a common question from beginner to intermittent level developers in many interviews.   Logic in Overview: 1. Define the number of rows to print the pyramid. 2. Use nested loop to print the rows and columns. 3. First outer loop takes the count from the above defined variable. 4. Second inner loop takes the count…

Read More Read More

784 total views, 1 views today