Apply OS: Linux

Apply Navicat Product: All

Apply Navicat Version No.: Version 12.1

 

Navicat Object

Command Line

Automation

start_navicat -batchjob BatchJobName

Backup
(MySQL, PostgreSQL, SQLite and MariaDB)

start_navicat -backup [ProfileName] -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName -s SchemaName

Data Synchronization

start_navicat -datasync ProfileName -t ConnectionType

Data Transfer

start_navicat -datatransfer ProfileName -t ProfileType

Export Materialized View Result
(Oracle and PostgreSQL)

start_navicat -exportmview ProfileName -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName -s SchemaName

Export Query Result

start_navicat -exportquery ProfileName -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName -s SchemaName

Export Table/Collection

start_navicat -export ProfileName -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName -s SchemaName

Export View Result

start_navicat -exportview ProfileName -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName -s SchemaName

Import

start_navicat -import ProfileName -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName -s SchemaName

MapReduce
(MongoDB)

start_navicat -mapreduce ProfileName -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName

Query Execution

start_navicat -query QueryName -u NavicatID -p ProjectName -t ConnectionType -c ConnectionName -d DatabaseName -s SchemaName

Note:

NavicatID - if the connection stores in Navicat Cloud, Navicat ID is required, e.g. user@example.com

ProjectName - if the connection stores in Navicat Cloud, project name is required

ConnectionType - type of the connection: MySQL, Oracle, PostgreSQL, SQLite, MariaDB or MongoDB

ProfileType - type of the data transfer profile: MySQL, Oracle, PostgreSQL, SQLite, MariaDB, MongoDB or Premium

Example:

start_navicat -exportquery MyQueryExport1 -u test@navicat.com -p Project1 -t MySQL -c "MySQL 5.6" -d sakila

Have more questions?
Submit Ticket