Note that there are some explanatory texts on larger screens.

plurals
  1. POCommand history in mysql client only showing last line of multiline query
    primarykey
    data
    text
    <p>I'm using Mysql's command-line client in Screen/Tmux, from Bash in OSX's Terminal.app. When using arrow-up to re-display a previously run query that spanned more than on line, AND when the cursor is on the very last line of the Terminal, the command in mysql's command history gets 'truncated', or cut off. This never happens when I use the same tools on my Ubuntu workstation</p> <p>Here's a visual representation of what happens:</p> <p>Typing some query; nothing wrong here.</p> <pre><code>+-------------------------------------------+ |mysql&gt; | |mysql&gt; | |mysql&gt; | |mysql&gt;select * from tables where legs = 4 a| |nd colour = 'green'; | +-------------------------------------------+ </code></pre> <p>Run it, results are displayed:</p> <pre><code>+-------------------------------------------+ || 2 | ....... | ..... | | |+---+---------+-------+ | | x rows in set (0.00 sec) | | | |mysql&gt; | +-------------------------------------------+ </code></pre> <p>Hitting [arrow-up] to re-display last query leaves me with:</p> <pre><code>+-------------------------------------------+ || 2 | ....... | ..... | | |+---+---------+-------+ | | x rows in set (0.00 sec) | | | |nd colour = 'green'; | +-------------------------------------------+ </code></pre> <p>Hit [arrow-up] again, I get:</p> <pre><code>+-------------------------------------------+ || 2 | ....... | ..... | | |+---+---------+-------+ | | x rows in set (0.00 sec) | |mysql&gt;select * from tables where legs = 4 a| |nd colour = 'green'; | +-------------------------------------------+ </code></pre> <p>Could the be solved by changing a setting? Or is it a bug in Mysql's client?</p> <p>Software versions:</p> <pre><code>OSX 10.7.3 Terminal Version 2.2.2 (303) GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11) mysql Ver 14.14 Distrib 5.5.19, for osx10.7 (i386) using readline 5.1 Screen version 4.00.03 (FAU) 23-Oct-06 tmux 1.6 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload