mysqlsh Command Examples

Advanced command-line client for MySQL, supporting SQL, JavaScript, and Python. It offers features for managing InnoDB clusters and document store collections. More information: https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-commands.html.

mysqlsh

mysqlsh --user {{username}} --host {{hostname}} --port {{port}}

mysqlsh --user {{username}} --execute '{{sql_statement}}'

mysqlsh --js

mysqlsh --py

mysqlsh --import {{path/to/file.json}} --schema {{schema_name}} --collection {{collection_name}}

mysqlsh --verbose