mysql takes up a lot of memory when writing results to a file -


i have query so:

mysql --port=3306 --host=remote_host -e 'select * pretty_big_table' > data.out 

the problem is, table pretty big , takes lot of memory. can't select ... outfile because i'm running on remote host. there way dump data out locally without taking memory?

use mysql --quick.

http://dev.mysql.com/doc/refman/5.6/en/mysql-command-options.html

  • --quick, -q

    do not cache each query result, print each row received. may slow down server if output suspended. option, mysql not use history file.


Comments

Popular posts from this blog

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -