How can I connect to remote mysql database from matlab mobile?

3 ビュー (過去 30 日間)
Volodymyr Naumenko
Volodymyr Naumenko 2018 年 4 月 6 日
コメント済み: Walter Roberson 2018 年 4 月 9 日
Connecting from matlab mobile:
{conn = database('db','user','passw', ...
'com.mysql.jdbc.Driver', ...
'server:3306/db');
exec(conn3);}
Connection Massage: 'No suitable driver found'. From laptop connection works fine.
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 9 日
I doubt that MATLAB Online permits remote connections.

サインインしてコメントする。

回答 (1 件)

Pradeep
Pradeep 2018 年 4 月 9 日
Not sure if this is something specific to your network, but - prior to connecting to the database - could you try adding your driver to the Java class path as follows:
>> javaaddpath('path to MYSQL connector JAR');
  1 件のコメント
Volodymyr Naumenko
Volodymyr Naumenko 2018 年 4 月 9 日
I do it with my desctop matlab (driver need to be instulled before), but I try to do it with cloud connection from matlab mobile... Where should I store mysql connector in this case?

サインインしてコメントする。

コミュニティ

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by