Mysql Base64 encode/decode
Progamming/DB2022. 4. 4. 16:25
TO_BASE64() : Return the argument converted to a base-64 string
FROM_BASE64() : Decode base64 encoded string and return result
-----------------------------------------------------
1. SELECT TO_BASE64('abc') encodeStr, convert(FROM_BASE64(TO_BASE64('abc'))) decodeStr;
2. 로그인 mysql -uroot -p --skip-binary-as-hex
SELECT TO_BASE64('abc') encodeStr, FROM_BASE64(TO_BASE64('abc')) decodeStr;
'Progamming > DB' 카테고리의 다른 글
[MYSQL] Error caching_sha2_password (0) | 2022.05.19 |
---|---|
[MYSQL] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (0) | 2022.05.19 |
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
MSSQL 로그 사이즈 줄이기 (0) | 2015.04.17 |