That would have to be: db.users.find({"name": /.*m.*/}) or, similar: db.users.find({"name": /m/}) You're looking for something that contains "m" somewhere (SQL's '%' operator is equivalent to Regexp's '.*'), not something that has "m" anchored to the beginning of the strin...
To transfer data from mysql to mongodb 1st create a backup of mysql database as a json file. You can export data as a json file from phpmyadmin. Then edit the json file, Remove the additional information and keep only json array. Then from terminal you can import data ...
Start MongoDB sudo service mongod start Verify that the mongod process has started successfully: sudo service mongod status As needed, you can stop the mongod process by issuing the following command: sudo service mongod stop Issue the following comma...