Mongodb configuration in zone
-
- Posts: 22
- Joined: 25 Jul 2017, 07:44
Mongodb configuration in zone
I want to connect mongodb in smartfox. How to configure mongodb in zone like us mysql. What can do for this ?
Re: Mongodb configuration in zone
Hi,
as you already know, MongoDB is not a relational database so it works differently from MySQL, Postgres, MSSQL etc...
The high level database API provided by SmartFoxServer work with relational databases only, but for NoSQL engines such as MongoDB you will need to work directly with Mongo's API.
To answer your question more specifically you will not need to configure the database in the SFS zone, instead you need to download the MongoDB drivers from their website:
https://mongodb.github.io/mongo-java-driver/
and deploy under SFS2X/extensions/__lib__/
Then you can import Mongo's classes in your Extension code and talk to the database via its API.
Hope it helps
as you already know, MongoDB is not a relational database so it works differently from MySQL, Postgres, MSSQL etc...
The high level database API provided by SmartFoxServer work with relational databases only, but for NoSQL engines such as MongoDB you will need to work directly with Mongo's API.
To answer your question more specifically you will not need to configure the database in the SFS zone, instead you need to download the MongoDB drivers from their website:
https://mongodb.github.io/mongo-java-driver/
and deploy under SFS2X/extensions/__lib__/
Then you can import Mongo's classes in your Extension code and talk to the database via its API.
Hope it helps
Who is online
Users browsing this forum: Stevenor and 54 guests