title: sql query result to csv file directly from console
body: <p>I want to export <code>select</code> query result with two columns to <code>csv</code> file. I don't have phpmyadmin or tools like this. I have to run my query directly from console. Can someone give me a hint how can I do this?</p>