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.

2 次查看(过去 30 天)
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?

回答(1 个)

Yuebin Zhou
Yuebin Zhou 2016-3-17
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.

类别

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