Unable to load bundle binary [path...]mwlibmysql_builtinimpl.dll. Error: 126: not connected
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Database Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!