mysql - How to do select encrypt in workbench -
i using workbench mac when trying select encrypt, have no result in field. if copy field obtain tree dots "..."
i try same thing query browser , have result.
how display in workbench ?
select encrypt("mypassword")
encrypt()
returns binary string.
by default, mysql workbench not display binary strings (to avoid accidental misinterpretation); possible display binary string values in output grids: view > edit > preferences > sql editor > treat binary/varbinary
nonbinary character string.
alternatively, transcode result non-binary string:
select convert(encrypt('test') using utf8)
or encode in suitable fashion:
select hex(encrypt('test'))
Comments
Post a Comment