dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.42k stars 661 forks source link

Mysql Result: Column is too long to show completely #1032

Closed Lilihx closed 2 years ago

Lilihx commented 2 years ago

I save a long json string (very long) in Mysql. When i select the row, the command line cannot show complete data. Instead, it shows "{long json} ... "

When I want to copy the data to covert it to json, I have to save that to a file.

Is there any settings ? How can i slove the problem ?

j-bennet commented 2 years ago

We experienced performance problems outputting huge blobs of text to the terminal before, so by default truncation is on. But you can still view full results by turning on vertical output for the current query with \G

select col1 from my_table where col2 = 1 \G
Lilihx commented 2 years ago

Thanks !!!