Well this took me a while but to search for an email address like bob.sm
db.depicus.users.find({“EmailAddress”: /^bob\.sm/i}, {EmailAddress:1}).skip(0).limit(0)
Well this took me a while but to search for an email address like bob.sm
db.depicus.users.find({“EmailAddress”: /^bob\.sm/i}, {EmailAddress:1}).skip(0).limit(0)
Category: NoSQL Tags: Escape Dot, Regex | Comments (0)
Wow it’s quite easy
1. Download Mongo from here
2. Grab the PHP drivers from here
3. Unzip 2. and move to /usr/lib/php/extensions/no-debug-non-zts-20090626/mongo.so
4. Edit php.ini and add extension=mongo.so then restart Apache
5. Start Mongo by extracting the files in 1. then fire up terminal and make a data directory with sudo mkdir -p /data/db for the data then run sudo mongod to run the server.
6. Head over to here for a basic Hello World
7. Download MongoHub for a nice, sexy GUI at http://mongohub.todayclose.com – and it’s even on github https://github.com/bububa/MongoHub-Mac – perfect.
Easy peasy….
Category: Computers, Interweb, NoSQL, OS X, Software Development Tags: Apache, Github, Mongo, Mongod, MongoHub, PHP | Comments (0)