source: MML/trunk/applications/database/mym/utilities/dbadd.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 455 bytes
Line 
1function dbadd(dbase)
2% DBADD     Create a MySQL database
3% INPUTS  : DBASE - database name, string
4% OUPUTS  : None
5% EXAMPLE : dbadd('newdb')
6% AUTHOR  : Dimitri Shvorob, dimitri.shvorob@vanderbilt.edu, 8/7/06
7if ~mycheck
8   error('No MySQL instance detected. Use MYOPEN to connect.')
9else
10   try
11      mym(['create database ' dbase])
12   catch
13      error(['Database ' dbase ' could not be created. Check if ' dbase ' already exists.'])
14   end
15end   
Note: See TracBrowser for help on using the repository browser.