title: Show Databases/Tables INTO OUTFILE
body: <p>Is there a way of getting the output of a <code>SHOW DATABASES</code> or <code>SHOW TABLES</code> command to output to a text file, similar to how the <code>SELECT ... INTO OUTFILE</code> works?</p>
  
  <p>The <code>INTO OUTFILE</code> produces a syntax error when used on a <code>SHOW</code> command. I am open to external commands if there is a way to produce this using a cmdline tool such as mysqldump.</p>