I want to connect mysql database on www.000webhost.com with matlab 2016a. Is that possible?If yes, How to do that? Can't get any source for this.

5 views (last 30 days)
Yash Jain
Yash Jain on 15 Mar 2016
Answered: Yuebin Zhou on 17 Mar 2016
I know 3 way to connect database by matlab.
1. conn = database(instance,username,password)
2. conn = database(instance,username,password,driver,databas eurl)
3. conn = database(instance,username,password,Name,Value)
I think that would be the second option. But I don't know about driver and databaseurl. Can anyone give me some examples to connect to database over webhost?

Answers (1)

Yuebin Zhou
Yuebin Zhou on 17 Mar 2016
The functions you mentioned correspond to connect to database using JDBC, ODBC and Bridge. You can refer to the link below for some explanations and examples.

Community Treasure Hunt

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

Start Hunting!