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
Kaustubha Govind
Kaustubha Govind 2012년 11월 12일
What does conn.Message contain?

댓글을 달려면 로그인하십시오.

카테고리

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