A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3resource.com/mysql/encryption-and-compression-functions/password().php below:

Website Navigation


MySQL password() - w3resource

MySQL PASSWORD() functionLast update on August 08 2023 12:39:48 (UTC/GMT +8 hours) PASSWORD() function

MySQL password() returns a binary string from a plain text password.

The function returns NULL if the string supplied as the argument was NULL.

MySQL server uses this function to encrypt MySQL passwords for storage in the Password column of the user grant table.

Syntax:

PASSWORD(string);

Argument:

Name Description string A string which is to be encrypted using PASSWORD function.

Syntax Diagram:

MySQL Version: 8.0

Example:

Code:

SELECT PASSWORD('w3resource');

Explanation:

The above MySQL statement encrypts the plain text string w3resource and returns a binary string *EE0804DDC2CC3E85A47191ECCCBA29B775DFFA77.

Output:

mysql> SELECT PASSWORD('w3resource');
+-------------------------------------------+
| PASSWORD('w3resource')                    |
+-------------------------------------------+
| *EE0804DDC2CC3E85A47191ECCCBA29B775DFFA77 | 
+-------------------------------------------+
1 row in set (0.00 sec)

Previous: OLD_PASSWORD()
Next: SHA1()




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4