HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Install Plugins

Overview

In order to meet the demand for functional diversity, MogDB provides a variety of feature-rich plugins. At the same time, PTK also supports one-click installation of these plugins, so that users can quickly use the plugin functions.

List of Plugins

Installation Demonstration

Installation command:

ptk cluster -n <CLUSTER_NAME> install-plugin [-H|--host HOST] [-p|--pkg PKG_PATH] [-P|--plugin PLUGIN_NAME] [--override] [--skip-check-version]

options:

option name option type description
-H|--host String Array Specify the IPs of the hosts to be installed, which will be installed to all hosts in the cluster by default.
-p|--pkg String Specify the path of the plugin package, you can specify the local plugin package or the URL.
-P|--plugin String Array Specify the name of the plugin to install, all plugins will be installed by default.
--override Bool Whether or not to overwrite existing plugin files.
--skip-check-version Bool Skip checking if the database version matches the plugin version.

QA

Which version of the plugin is installed by default?

PTK does plugin adaptation according to the version number of the current cluster. If -p is not specified, the default plugin version is the same as the version of the current cluster database; if -p is specified, the plugin version is the version number of the specified package.

How can I check that the plugin has been successfully installed?

  1. You can confirm whether the plugin has been installed successfully based on whether the above installation command is executed successfully or not.
  2. List plugins according to Show Plugin Information.

How to enable plugins?

Execute the following command to link to the target database:

gsql -r -d <DATABASE_NAME>

Use the following command to create the extension:

CREATE Extension <EXTENSION_NAME>

What is --override used for? When should it be used?

Usage: --override means that for plugins that have already been installed, if the plugin installation is executed again, it will directly overwrite the corresponding files of the original plugin, and will no longer interact with the user to confirm one by one.

When to use: There may be cases where the plugin version number is inconsistent with the database version number, which may result in the database not being able to properly enable plugin, so this option can be used when installing.

What is --skip-check-version used for? When should I use it?

Usage: When PTK installs a plugin, it parses the version number in the plugin package and determines whether it matches the version number of the current database, and reports an error if it does not. The purpose of -skip-check-version is to skip this validation.

When to use:

  1. Wish to use a different version of plugin with the current version of the database.
  2. If there is no corresponding plugin package released for a particular MogDB version, you can use this option to skip the validation and install another version of the plugin.

Can I uninstall a plugin that is already installed?

Not supported.

Can an extension already created in the database be deleted?

Execute the following command to link to the target database:

gsql -r -d <DATABASE_NAME>

Use the following command to delete an extension that has already been created:

DROP Extension <EXTENSION_NAME>
Copyright © 2011-2024 www.enmotech.com All rights reserved.