How to deploy web application along with MySQL database ?

1 回表示 (過去 30 日間)
Dhanaraj Nelapati
Dhanaraj Nelapati 2021 年 7 月 6 日
コメント済み: Dhanaraj Nelapati 2021 年 7 月 7 日
%I have built an web application, to insert and access data from MySQL database, when I run it , it`s working but when it is deployed as a web app it`s showing errors. Here is my code for connection to database:
databasename ='demo_database';
app.conn2 = database(databasename,'user_ID','Password','Vendor','MySQL', ...
'Server','server_name,'PortNumber',3306);
  1. Do I need to add mysql-connector-java-8.0.23.jar to application while compiling as a web app?
  2. How to acess database from another desktop which has a web application but not mySQL and MATLAB?
Thanks in advance

回答 (1 件)

Jai Khurana
Jai Khurana 2021 年 7 月 6 日
Hi Nelapati,
Hope it helps.
  1 件のコメント
Dhanaraj Nelapati
Dhanaraj Nelapati 2021 年 7 月 7 日
Hi Jai, Thank you for answer, I am using MATLAB2019a version.I am not able to findout, where I can define "Driverlocation" in database function which we use it for establishing connection to database. Is there any way to define it?
Thanks in advance

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

カテゴリ

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