How can I directly view blobs in MySQL Workbench

前端 未结 12 2114
一整个雨季
一整个雨季 2021-01-30 19:31

I\'m using MySQL Workbench CE 5.2.30 CE / Rev 6790 . When execute the following statement:

SELECT OLD_PASSWORD(\"test\")

I only get back a nice

12条回答
  •  眼角桃花
    2021-01-30 20:18

    NOTE: The previous answers here aren't particularly useful if the BLOB is an arbitrary sequence of bytes; e.g. BINARY(16) to store 128-bit GUID or md5 checksum.

    In that case, there currently is no editor preference -- though I have submitted a feature request now -- see that request for more detailed explanation.

    [Until/unless that feature request is implemented], the solution is HEX function in a query: SELECT HEX(mybinarycolumn) FROM mytable.


    An alternative is to use phpMyAdmin instead of MySQL Workbench - there hex is shown by default.

提交回复
热议问题