All Projects → lefred → Mysqlshell Plugins

lefred / Mysqlshell Plugins

Licence: gpl-2.0
Plugins for MySQL Shell

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mysqlshell Plugins

Zeppelin Mongodb Interpreter
MongoDB interpreter for Apache Zeppelin
Stars: ✭ 44 (-6.38%)
Mutual labels:  hacktoberfest
Laminas Validator
Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria
Stars: ✭ 45 (-4.26%)
Mutual labels:  hacktoberfest
Php Open Graph
This package provides a fluent PHP OOP builder for Open Graph protocol.
Stars: ✭ 46 (-2.13%)
Mutual labels:  hacktoberfest
Ejs Playground
A web app to play with EJS templates.
Stars: ✭ 44 (-6.38%)
Mutual labels:  hacktoberfest
Uno.ch9
Ch9 - Uno Reference Implementation project
Stars: ✭ 45 (-4.26%)
Mutual labels:  hacktoberfest
Dbfs
Distributed Blockchain-based File Storage 📡
Stars: ✭ 45 (-4.26%)
Mutual labels:  hacktoberfest
Snaake Flutter
Snaake is a small and very simple clone of the classic snake game from Nokia phones.
Stars: ✭ 44 (-6.38%)
Mutual labels:  hacktoberfest
Csv To Geojson
Convert a CSV to GeoJSON
Stars: ✭ 46 (-2.13%)
Mutual labels:  hacktoberfest
Typescript
Rudimentary TypeScript support
Stars: ✭ 45 (-4.26%)
Mutual labels:  hacktoberfest
Pwa Module
Zero config PWA solution for Nuxt.js
Stars: ✭ 1,033 (+2097.87%)
Mutual labels:  hacktoberfest
Boxstarter
Repeatable, reboot resilient windows environment installations made easy using Chocolatey packages
Stars: ✭ 1,024 (+2078.72%)
Mutual labels:  hacktoberfest
Kayenta
Automated Canary Service
Stars: ✭ 1,026 (+2082.98%)
Mutual labels:  hacktoberfest
Date Fns.org
🏡 date-fns website 🌈
Stars: ✭ 45 (-4.26%)
Mutual labels:  hacktoberfest
Pokr
Make agile estimating and planning easy with our online planning or scrum poker tool
Stars: ✭ 44 (-6.38%)
Mutual labels:  hacktoberfest
Mserver
Server zum Steuern des Crawler
Stars: ✭ 45 (-4.26%)
Mutual labels:  hacktoberfest
John Cena
You can't see me. 😄
Stars: ✭ 44 (-6.38%)
Mutual labels:  hacktoberfest
Simpletones.js
The goal of simpleTones.js is to provide every JavaScript developer with a lightweight solution for creating custom sounds in their web applications. This documentation has been written in hopes that the least experienced developer can read, understand and go on to do great things. You can check out several examples at this link:
Stars: ✭ 45 (-4.26%)
Mutual labels:  hacktoberfest
Flutter shuttletracker
Shuttle Tracker in Flutter
Stars: ✭ 47 (+0%)
Mutual labels:  hacktoberfest
Camunda Webapp Translations
Translations for Camunda Cockpit/Tasklist/Admin. Your language missing? Make a PR!
Stars: ✭ 46 (-2.13%)
Mutual labels:  hacktoberfest
Meteor Files
🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.
Stars: ✭ 1,033 (+2097.87%)
Mutual labels:  hacktoberfest

mysql-shell-ex

A collection of MySQL Shell example plugins (MySQL Shell >= 8.0.22).

After installing this plugin collection into the .mysqlsh/plugins/ folder, all the plugins will be automatically loaded at MySQL Shell startup.

To get help about the individual plugins type \? <plugin>.

MySQL JS> \? schema_utils
NAME
      schema_utils - Schema management and utilities.

DESCRIPTION
      A collection of schema management tools and related utilities that work
      on schemas."

FUNCTIONS
      deleteProcedures([schema][, routine][, session])
            Delete stored procedures.

      help([member])
            Provides help about this object and it's members

      showDefaults(table[, schema][, session])
            Lists the default values of each column in a table.

      showInvalidDates([table][, schema][, session])
            Show Invalid Dates

      showProcedures([schema][, session])
            Lists all stored procedures of either all schemas or a given
            schema.

      showRoutines([schema][, session])
            Show Routines.


MySQL JS> schema_utils.showProcedures()
+----------------+-------------------------------------+
| ROUTINE_SCHEMA | ROUTINE_NAME                        |
+----------------+-------------------------------------+
| sys            | extract_schema_from_file_name       |
| sys            | extract_table_from_file_name        |
...

MySQL JS> \py
Switching to Python mode...

MySQL PY> schema_utils.show_procedures()
+----------------+-------------------------------------+
| ROUTINE_SCHEMA | ROUTINE_NAME                        |
+----------------+-------------------------------------+
| sys            | extract_schema_from_file_name       |
| sys            | extract_table_from_file_name        |
...

Installation

To install this demo on your machine type the following commands after you have installed the MySQL Shell and the git command line tools.

This will clone the repository and copy the files to the right path in order to be automatically loaded on MySQL Shell startup.

macOS / Linux

$ mkdir -p ~/.mysqlsh/plugins
$ git clone https://github.com/lefred/mysqlshell-plugins.git ~/.mysqlsh/plugins

Windows

$ mkdir %AppData%\MySQL\mysqlsh\plugins
$ git clone https://github.com/lefred/mysqlshell-plugins.git %AppData%\MySQL\mysqlsh\plugins

Missing Modules

It might be possible that for some plugins, your are missing some modules. Usually it is python3-requests.

You can then just install it. However, on some systems, the version of Python 3 doesn't match the version linked with MySQL Shell. This is the case with OL7/OL8 where Python 3.6 is installed and MySQL Shell Enterprise build provides Python 3.7.

If this is the case for you, you can install the missing modules within MySQL Shell too using mysqlsh --pum pip.

Example with requests:

For the router and proxySQL plugin, requests is required, if you don't have it installed, when you start MySQL Shell, you will get this message:

Error importing module 'requests', check if it's installed (Python 3.7.7)

You have 2 options, install it system wide (available for all users), if you have root access, or just for your user:

$ sudo mysqlsh --pym pip install requests

or

$ mysqlsh --pym pip install --user requests

That's it !

Extending the MySQL Shell

Please take a look at the demo/init.py file to learn how to extend the MySQL Shell with plugins.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].