Connection to an LTPDA Repository uses the JDBC interface of the Database toolbox. The command utils.mysql.connect can be used to connect to a repository. It takes the following input arguments:
hostname | A hostname for the repository |
dbname | A database name to connect to |
>> conn = utils.mysql.connect('130.75.117.67', 'ltpda_test') ** Connecting to 130.75.117.67 as john.doe... ** Connection status: DatabaseProductName: 'MySQL' DatabaseProductVersion: '5.0.45' JDBCDriverName: 'MySQL-AB JDBC Driver' JDBCDriverVersion: [1x103 char] MaxDatabaseConnections: 0 CurrentUserName: 'john.doe@130.75.117.67' DatabaseURL: 'jdbc:mysql://130.75.117.67/ltpda_test' AutoCommitTransactions: 'True'
>> close(conn)