How can I connect matlab to mysql?

3 次查看(过去 30 天)
Tomas
Tomas 2012-11-10
How can I connect matlab to mysql using ODBC?
  1 个评论
Sven
Sven 2012-11-11
Use the Database toolbox.
What have you tried? In what ways didn't it meet your expectations?

请先登录,再进行评论。

回答(1 个)

David Barry
David Barry 2012-11-11
As Sven suggests, you should use the functions within the Database Toolbox - assuming of course that you have this toolbox. The help documents are very good and have some examples that should get you going. Please upload your code if you are still struggling.
  2 个评论
Tomas
Tomas 2012-11-11
can you give me steps because i tried to do this
conn = database('localhost','root','')
a = isconnection(conn)
but i get this result
conn =
Instance: 'localhost'
UserName: 'root'
Driver: []
URL: []
Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
Message: [1x166 char]
Handle: 0
TimeOut: []
AutoCommit: 'off'
Type: 'Database Object'
a =
0

请先登录,再进行评论。

类别

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