title: Export MySql table by query selecting few rows ordered descending
body: <p>my issue is this<br>
  I have table in my database which have more than 1 million rows. Sometimes i need have sql dump of my table in my PC and export whole table taking very long.
  Actually i need exported table for example with last 5000 rows.
  So is there a way to export MySql table by selecting last X rows.
  I know some ways to do it by terminal commands, but i need poor MySql query if it is possible.
  Thanks </p>