which mysql

%--
% show databases
%--

mysql open;

A = mysql('show databases')

for k = 1:length(A),
	disp(A(k));
end

mysql close;

%--
% show database tables
%--

db = A(1).Database,

mysql('open','','','',db);

B = mysql('show tables'),

mysql close;

