Skip to content

PASSWORD

SELECT PASSWORD('my_password');
*14E65567ABDB5135D0CFD9A70B3032C179A49EE7

The PASSWORD() function in MySQL is used to encrypt a plaintext password. In the above example, the string ‘my_password’ is passed as an argument to the PASSWORD() function, which returns a hashed version of the password.