For those who want to run some database work in the terminal, Navicat provides some very useful command line processing options. So that you can quickly and easily build, manage and maintain databases. Navicat share common commands, see below.
Navicat commonly used commands
Automatically run
the program path --batch-jobs batch job name
Backup (MySQL, PostgreSQL, SQLite and MariaDB)
program path --backup profile name -u NavicatID -p project name -t connection type
-c -d database connection name names -s schema name
Data synchronization
program path --data-synchronization type connection profile name -t
Data transmission
program --data-transfer path name of the configuration file -t Profile Type
Export materialized view results (the Oracle and PostgreSQL)
program path --export-mview configuration file name item name -u NavicatID -p -t
connection type connection name -c -d -s schema name database name
Export query results
program path --export-query profile name -u NavicatID -p project name -t even
then type the name of the connection -c -d database schema name name -s
Export table or set of
procedures path --export profile name -u NavicatID -p project name -t connection type
-c -d database connection name names -s schema name
导出视图结果
程序路径 --export-view 配置文件名 -u NavicatID -p 项目名 -t 连
接类型 -c 连接名 -d 数据库名 -s 模式名
导入
程序路径 --import 配置文件名 -u NavicatID -p 项目名 -t 连接类型
-c 连接名 -d 数据库名 -s 模式名
MapReduce(MongoDB)
ProgramPath --mapreduce 配置文件名 -u NavicatID -p 项目名 -t
连接类型 -c 连接名 -d 数据库名
MongoDump(MongoDB)
ProgramPath --mongodump 配置文件名
MongoExport(MongoDB)
ProgramPath --mongoexport 配置文件名
MongoImport(MongoDB)
ProgramPath --mongoimport 配置文件名
查询运行
程序路径 --query-execution 查询名 -u NavicatID -p 项目名 -t 连
接类型 -c 连接名 -d 数据库名 -s 模式名
程序路径 - 应该是运行文件的路径:如 ./"Navicat Premium.app"/Contents/MacOS/"Navicat Premium"
NavicatID - 如果连接是保存在 Navicat Cloud,需要输入 Navicat ID,例如:[email protected]
Project name - if the connection is kept in Navicat Cloud, you need to enter project name
Connection type - the type of connection: MySQL, Oracle, PostgreSQL, SQLite, MSSQL, MariaDB or MongoDB
Profile Type - the type of data transmission configuration file: MySQL, Oracle, PostgreSQL, SQLite, MSSQL, MariaDB, MongoDB or Premium
These are small as we bring Navicat commonly used commands, you remember it?