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:
448 bytes
|
Line | |
---|
1 | function dbopen(dbase) |
---|
2 | % DBOPEN Open a MySQL database |
---|
3 | % INPUTS : DBASE - database name, string |
---|
4 | % OUTPUTS : None |
---|
5 | % EXAMPLE : dbopen('mydb') |
---|
6 | % AUTHOR : Dimitri Shvorob, dimitri.shvorob@vanderbilt.edu, 8/7/06 |
---|
7 | if ~mycheck |
---|
8 | error('No MySQL instance detected. Use MYOPEN to connect.') |
---|
9 | else |
---|
10 | try |
---|
11 | a = mym(['use ' dbase]); %#ok |
---|
12 | catch |
---|
13 | error(['Database ' dbase ' not found. Use DBLIST to list available databases.']) |
---|
14 | end |
---|
15 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.