java - Create MySql Database using Matlab -
i using database toolbox of matlab run mysql queries. doing using jdbc driver (connector/j).
i able connect/create/delete new tables given database.
is there way can directly create new database matlab itself? i'm looking solution lets me using toolbox or using java matlab.
here's have used. in matlab works.
import java.sql.*; connd = drivermanager.getconnection(... 'jdbc:mysql://localhost/?user=urname&password=urpassword'); sd=connd.createstatement(); result=sd.executeupdate('create database urdatabasename'); sd.close(); connd.close();
mind you, doesn't include error handling , checks. make sure handle data carefully.
Comments
Post a Comment