Adding a Database Tool

This method creates a database tool on the Parallels Pro Control Panel server.

Method

public void AddDatabaseTool (DatabaseToolData databasetool, string username, string password)

Parameters

  • databasetool, which is the object of DatabaseToolData to be added with all details
  • username, which is the username of the service provider
  • password, which is the password of the service provider

Return Value

none

Note:You cannot use phpMyAdmin as a tool name as this is the default tool provided by Parallels Pro Control Panel.

Example code:

DatabaseToolData dbToolData = new DatabaseToolData();

dbToolData.ToolName = "MyDatabaseTool";

dbToolData.ToolType = DatabaseToolType.MSSQL2005;

dbToolData.Target = "http://dbmgmt.myisp.net";

dbToolData.HelpTarget = "http://dbmgmthelp.myisp.net";

w.AddDatabaseTool(dbToolData, "admin", "ensim123");