简体   繁体   中英

What is the name of the less-than symbol mysql uses to ingest sql files?

When I want mysql to run a sql file, I use a command like this:

mysql -uroot -prootpass dbname < dump.sql

What is the name of the operator that is the less-than sign in this operation?

This is called a redirection operator

You can read up in your shell's manfile as well: man bash (for instance) reads

Before a command is executed, its input and output may be redirected using a special notation interpreted by the shell. [...] Redirection of input causes the file whose name results from the expansion of word to be opened for reading on file descriptor n, or the standard input (file descriptor 0) if n is not specified.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM