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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -