msqldump - dump a MonetDB/SQL database
msqldump [ options ] [ dbname ]
MonetDB is a database management system that is developed from a main-memory perspective with use of a fully decomposed storage model, automatic index management, extensibility of data types and search accelerators, and an SQL front end.
Msqldump is the program to dump an MonetDB/SQL database. The dump can be used to populate a new MonetDB/SQL database.
Before msqldump starts parsing command line options, it reads a configuration file. If the environment variable DOTMONETDBFILE is set and not empty, it reads the file pointed to by that variable. If set but empty, no configuration file is read. If unset, msqldump first looks for a file .monetdb in the current working directory, and if that doesn't exist, it looks for a file monetdb in the XDG configuration directory ($XDG_CONFIG_HOME which defaults to $HOME/.config if not set), and finally for a file .monetdb in the current user's home directory. This file can contain defaults for the flags user, password, host, and port. To disable reading the .monetdb file, set the variable DOTMONETDBFILE to the empty string in the environment.
Print usage information and exit.
Specify the name of the database to connect to. The -d can be omitted if it is the last option.
Specify the name of the host on which the server runs (default: localhost).
Specify the portnumber of the server (default: 50000).
Specify the user to connect as. If this flag is absent, the client will ask for a user name.
Only dump the database schema.
When dumping the table data, use INSERT INTO statements, rather than COPY INTO + CSV values. INSERT INTO statements are more portable, and necessary when the load of the dump is processed by e.g. a JDBC application.
When dumping the table data, use the NO ESCAPE option on the COPY INTO query.
Only dump functions definitions.
Only dump the specified table.
Don't print the welcome message.
Trace network interaction between mclient and the server.