I am trying to connect my Matlab with MongoDB using the mongoc function in Matlab 2021b version. But I am having this error - Files\MATLAB\R2021b\bin\win64\builtins\databas
17 views (last 30 days)
Yunus Abdulhameed Abdussalam on 27 Dec 2021
I have trying to connect my Matlab with MongoDB using the mongoc function in Matlab R 2021b version.
But I am having this error -
Files\MATLAB\R2021b\bin\win64\builtins\database_builtins\mwlibmongo_builtinimpl.dll failed with error: not connected: not connected
The specified module could not be found.
Below is my code;
addpath( [ '..' filesep 'MALARIA' filesep 'C Driver' filesep 'mongo-c-driver-1.17.6.tar.gz'] );
server = '127.0.0.1';
port = 27017;
dbname = "TestDB";
% Connect to server
conn = mongoc(server,port,dbname) ;
Tanmay Das on 30 Dec 2021
The issue is probably because a module used inside this library is missing. It is advised to check if all the necessary modules and packages are installed in your machine. You may look into "mongoc" function documentation for further information. In order to identify what modules are missing, you may leverage Dependency Walker for the same. Please look into this link for further clarity.
More Answers (1)
Walter Roberson on 30 Dec 2021
You cannot add a file with addpath() . MATLAB will not automatically expand the file and look inside it.
Also, if what you posted is the complete message, then you are having a problem with spaces in the directory name of the DLL -- but it is not obvious at the moment why that particular DLL was being looked for.