MySQL Forums
Forum List  »  MySQL Shell

MySQL Shell installing customer plugins
Posted by: IGG t
Date: July 24, 2019 04:57AM

I have been trying to add a plugin to MySQL Shell (8.0.17), but it is refusing to see it exists.

On my Windows 10 PC I have created the following directories.

%appdata%/MySQL/mysqlsh/plugins/ext/demo

In the /demo directory I have added the following files:

init.py
testPlugin.py

The init.py file contains:

from ext.mysqlsh_plugins_common import register_plugin
from ext.demo import testPLugin as testPlugin

I close all Shell windows, and open a new one. And then run

\h ext.demo

But all I get is:

No help items found matching ext.demo

If I try and run:

ext.demo.testPlugin()

I get:

ReferenceError: ext is not defined

Am I missing something here?

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL Shell installing customer plugins
1004
July 24, 2019 04:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.