I am trying to use Mongo to create a registration and login system. I have lots of experience with mySQL but haven't used Mongo before. I have been meaning to delve into Mongo for some time as there are a number of projects I feel it will lend it's self to nicely. I feel like IGE will be a nice place to start. I have done some reading and I understand the premise of Mongo: It's a flat file system but it's run server side so it's secure etc.
I have my game server setup ready to use Mongo with the following config:
- Code: Select all
db: {
type: 'mongo',
host: 'localhost',
user: '',
pass: '',
dbName: 'test'
}
And of course because I haven't created the database yet, i therefore get the server log:
- Code: Select all
IGE *log* [IgeMongoDbComponent] : Error when connecting to the database!
Now this may seem like a silly question, but just bear in mind that I am coming from mySQL and haven't used Mongo before. How and where do I create my database? I have seen varying tutorials that use different approaches and I wonder whether there are any important nuances when working with IGE. Any advice would be great, thanks.