What is the mysql command to pipe all command line input to a file on Fedora OS? -


I run several queries from mysql command line on my Linux box. I want to automatically capture all of these files in a file. I know that Linux is called history and then you can pipe it into the file. Is there something similar to MYSQL? I would like to save all my scripts and SQL queries at a later point in context.

Appreciate the aid.

stores your query history in the MySQL file ~ / .mysql_history . Some characters are saved in this file Space becomes \ 040 ; Backslash \\ becomes sed or you can change these escape sequences using your favorite text editor.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -