Home > m > mysql > mysql_connect.m

mysql_connect

PURPOSE ^

MYSQL_CONNECT connects to an AO repository and returns the connection

SYNOPSIS ^

function conn = mysql_connect()

DESCRIPTION ^

 MYSQL_CONNECT connects to an AO repository and returns the connection
 object.
 
 Usage: conn = mysql_connect()
 
 M Hewitson 24-05-07
 
 $Id: mysql_connect.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function conn = mysql_connect()
0002 
0003 % MYSQL_CONNECT connects to an AO repository and returns the connection
0004 % object.
0005 %
0006 % Usage: conn = mysql_connect()
0007 %
0008 % M Hewitson 24-05-07
0009 %
0010 % $Id: mysql_connect.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $
0011 %
0012 
0013 dbuser   = getappdata(0, 'mysql_user');
0014 dbpass   = getappdata(0, 'mysql_passwd');
0015 dbname   = getappdata(0, 'mysql_db');
0016 dbdriver = getappdata(0, 'mysql_driver');
0017 dburl    = getappdata(0, 'mysql_url');
0018 conn     = database(dbname,dbuser,dbpass,dbdriver,dburl);
0019 
0020 disp('** Connection status:')                      
0021 disp(ping(conn))
0022 
0023 
0024 % END

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003