No BSD License  

Highlights from
Access a MySQL database

image thumbnail

Access a MySQL database

by

 

05 Dec 2007 (Updated )

(with mym.m)

dbadd(dbname)
function dbadd(dbname)
% dbadd    Create MySQL database          [mym utilities]
% Example  dbadd('newdb')
if ~myisopen
   error('No MySQL connection active; use ''myopen'' to connect.')
else  
   try
      mym(sprintf('create database if not exists %s',dbname))
   catch
      error('Database %s could not be created',dbname)
   end
end   

Contact us