Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>mysqldump</code> in a <code>--tab</code> mode is a CLI tool for <code>SELECT INTO OUTFILE</code>. And the latter is normally supposed to be used to create a delimited file afresh and <strong>only on the db server host.</strong></p> <blockquote> <p><strong><a href="http://dev.mysql.com/doc/refman/5.5/en/select-into.html" rel="nofollow noreferrer">SELECT ... INTO Syntax</a></strong><br> The SELECT ... INTO OUTFILE statement is intended primarily to let you very quickly dump a table to a text file <strong>on the server machine</strong>. If you want to create the resulting file on some other host than the server host, you normally <strong>cannot use SELECT ... INTO OUTFILE since there is no way to write a path to the file relative to the server host's file system.</strong></p> </blockquote> <p>You have at least following options:</p> <ol> <li><p>use <code>mysql</code> instead of <code>mysqldump</code> on a remote host to create a tab delimited file instead</p> <pre><code>mysql -h&lt;host&gt; -u&lt;user&gt; -p&lt;password&gt; \ -e "SELECT 'column_name', 'column_name2'... \ UNION ALL SELECT column1, column2, FROM stores" &gt; \ /path/to/your/file/file_name </code></pre></li> <li><p>you can pipe it with <code>sed</code> or <code>awk</code> and create a CSV file from a tab delimited output. See <a href="https://stackoverflow.com/a/4743557/1920232">this</a> for details</p></li> <li><p>you can make a location for a file on a remote host accessible through network-mapped path on db server's file system.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload