Unable to load bundle binary [path...]m​wlibmysql_​builtinimp​l.dll. Error: 126: not connected

5 次查看(过去 30 天)
Dear all,
I try to get a MySQL Native Interface running.
I installed the drivers for both the ODBC (MySQL ODBC 8.0 ANSI Driver) and the Native (MySQL Connector C++ 8.0) version,
and I got the ODBC version running both in the Database Toolbox and via the command line (telling me that the connection to the database SHOULD work),
but when I try to use the native version I always end with the same error message.
My script file is as follows:
server = 'my.database.server.url';
dbName = 'mydatabase';
username = 'myuser';
password = 'myuserpasswd';
drivertype='native';
vendor = 'MySQL';
datasource='MySQLNative';
opts = databaseConnectionOptions(drivertype,vendor)
opts = setoptions(opts, ...
'DataSourceName', "MySQLDataSource", ...
'DatabaseName', mydatabase, 'Server', server, ...
'PortNumber', 3306)
status= testConnection(opts, username, password)
If I run this script I get the error message
"Unable to load bundle binary D:\MATLAB\bin\win64\builtins\database_builtins\mwlibmysql_builtinimpl.dll. Error: 126: not connected"
Could please anybody help me to find my mistake?
Thanks,
Doris
  3 个评论

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by