My Oracle Support Banner

How to read hex output from binary functions or blob columns in the command line client (Doc ID 2858236.1)

Last updated on MARCH 24, 2022

Applies to:

MySQL Server - Version 8.0 and later
Information in this document applies to any platform.


Certain functions, such as UNHEX or AES_DECRYPT, return a binary string. In the interactive terminal of the mysql command line client, the default behavior is to show such binary strings in their hexadecimal representation. BLOB columns are shown likewise.

 How can such hex strings be converted to a human readable string?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.