ODBC Driver for MongoDB

Linux DSN Configuration - ODBC Driver for MongoDB

Linux DSN Configuration

After the linux (DEB or RPM) driver is installed, a DSN with the name DEVART_MONGODB is created. You can use it to test the connection with the MONGODB server. For this, perform the following steps:

  1. Open the odbc.ini file located in the /etc folder. Find the DEVART_MONGODB section and specify the required connection settings:
    
    
    Server=<your MongoDB server address>
    Port=<your MongoDB Port>
    Database=<your MongoDB database name>
    Client Library=libmongoc-1.0.so.0BSON Library=libbson-1.0.so.0
  2. Run the UnixODBC Test Command utility and test a connection using the following command:
    isql -v DEVART_MONGODB 

Installing MongoDB client libraries

ODBC Driver for MongoDB requires libmongoc and libbson client libraries to be installed on the PC. The driver dynamically loads client libraries (by default, libmongoc-1.0.so.0 and libbson-1.0.so.0) available in the user system. If you do not have these libraries installed, you can use ones distributed with the driver.

After the driver is installed, four libraries will be copied to the driver installation folder:

The installer automatically detects the bitness of an operating system and creates the symlinks libmongoc-1.0.so.0 and libbson-1.0.so.0 for 32-bit or for 64-bit libraries correspondingly.

See Also

Connection Options

© 2015-2024 Devart. All Rights Reserved. Request Support ODBC Forum Provide Feedback