кроме как передать в заголовке и потом считать не приходят мысли.
Как установить mariadb 10.3 на debian?
mysql %options% < sql_file
-h host
--host=host
Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket. The default is taken from the PGHOST environment variable, if set, else a Unix domain socket connection is attempted.