MySQL Database Password function

Source: Internet
Author: User

Executing the following sentence in the MySQL database generates a new, encrypted string for the string. The user stores the password in the database.

SELECT PASSWORD (' AA ')

The generated string starts with the * number. Like ' *dee59c300700af9b586f9f2a702231c0ac373a13 '.


SELECT old_password (' AA ');

Old_password is an older version of the cryptographic function, and the resulting string is 16 bits, such as ' AA ' after encryption is ' 077baf58491e1952 '.


This method of generating passwords relies on the database and requires a connection to the database with network overhead. Usually also uses the MD5 method to do the plaintext encryption.



MySQL Database Password function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.