runsqlcmd -Runs sql command files against the current xCAT database.
runsqlcmd
runsqlcmd [-h|--help]
runsqlcmd [-v|--version]
runsqlcmd [-d|--dir directory_path] [-V|--verbose]
runsqlcmd [-f|--files list of files] [-V|--verbose]
runsqlcmd [-V|--verbose] [sql statement]
The runsqlcmd routine, runs the sql statements contained in the *.sql files as input to the command against the current running xCAT database. Only DB2,MySQL and PostgreSQL databases are supported. SQLite is not supported. If no directory or filelist is provided, the default /opt/xcat/lib/perl/xCAT_schema directory is used. If the directory is input with the -d flag, that directory will be used. If a comma separated list of files is input with the -f flag, those files will be used.
Displays the usage message.
Displays current code version.
Displays extra debug information.
To use a directory other than the default directory, enter the directory path here.
Comma separated list of files (full path), wildcard (*) can be used.
The files must be of the form <name>.sql or <name>_<database>.sql where
<database> is mysql,pgsql, or db2. Files must have permission 0755.
Quoted sql statement syntax appropriate for the current database.
runsqlcmd
runsqlcmd -d /tmp/mysql
runsqlcmd -f "/tmp/mysql/test*,/tmp/mysql/test1*"
runsqlcmd -f /tmp/db2/test_db2.sql
runsqlcmd "Select * from site;"