Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
485 views
in Technique[技术] by (71.8m points)

passwords - authentication_string is not output normally in mysql 5.7

I want to print out the account name and password(authentication_string) column at once and see it.

but, It is printed in the following form.

enter image description here

select user, authentication_string from mysql.user;
    +-------+---------------------------------+
| user     | authentication_string              |
+-------+---------------------------------+
| root          | *D7C60FF269438CF469FF6013C46F881B1B345F37          |
| mysql.session | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE  |
| mysql.sys     | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE   |
| sha256user    | $5$n][lWk
Qnn<q/o6w$D2eNhGMuP/thpHXaqFb59c0a0MOoPnL.xOiQQjtZjp/ |
+---------------+-----------------------+

I want to print sha256user information on 1 line

If anyone knows the answer, please let me know...

question from:https://stackoverflow.com/questions/65932590/authentication-string-is-not-output-normally-in-mysql-5-7

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...