DATABASE » SQL » MYSQL

Command

Usage

bash
mysql OPTIONS DBNAME
OptionDescription
-h --hostConnect to the MySQL server on the given host.
-P --portThe TCP/IP port number to use for the connection.
-u --userThe MySQL user name to use when connecting to the server.
-p --passwordThe password to use when connecting to the server.
-e --executeExecute the given SQL query and exit.
-t --tableDisplay output in table format.
-N --skip-column-namesDon't write column names in results.
-s --silentOutput in tab separated format.