How to create MySQL Database using matlab?

5 views (last 30 days)
Naseef Rahman
Naseef Rahman on 22 Apr 2017
Commented: per isakson on 2 Feb 2018
I am doing some data analytics using MySQL and Matlab. My program works fine if there is already an existing database present. But it doesn't work when there is not database for which I am trying to create connection. Now, what I want to do is to create a database with a fixed name if there is no database present in that name. I searched all over the internet and haven't found any option for that. May be I am missing something.
Additionally, I would like to create a table on the newly created database and store some random data on them. I can do this part. But I am stucked on the first part which is creating database programmatically using matlab.
Please note that, I have to use only matlab for this project. Any kind cooperation will be greatly appreciated.
  2 Comments
James Johnson
James Johnson on 2 Feb 2018
Edited: James Johnson on 2 Feb 2018
I don't think Matlab CAN make a SQL database? Please let me know if you have solved this. I am working on similar issues. One can create an sqlite database, but one cannot store matrices or strings in it (as near as I can tell). You have to make the database elsewhere for anything other than sqlite.
I asked a related question and in that you can find some code that might get you started if you had given up in April.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!