LTPDA Toolbox | contents | ![]() ![]() |
Connection to an LTPDA Repository uses the JDBC interface of the Database toolbox. The command 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 = mysql_connect('localhost', 'ltpda_test') ** Connecting to localhost as ltpdaadmin... ** Connection status: DatabaseProductName: 'MySQL' DatabaseProductVersion: '5.0.45' JDBCDriverName: 'MySQL-AB JDBC Driver' JDBCDriverVersion: [1x103 char] MaxDatabaseConnections: 0 CurrentUserName: 'ltpdaadmin@localhost' DatabaseURL: 'jdbc:mysql://localhost/ltpda_test' AutoCommitTransactions: 'True'
>> close(conn)
![]() |
What is an LTPDA Repository | Submitting LTPDA objects to a repository | ![]() |
©LTP Team