Commit e510d134 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

manual.texi PASSWORD() issue clarified

parent dfb3e31c
...@@ -17406,10 +17406,13 @@ mysql> FLUSH PRIVILEGES; ...@@ -17406,10 +17406,13 @@ mysql> FLUSH PRIVILEGES;
The result is that the plaintext value @code{'biscuit'} is stored as the The result is that the plaintext value @code{'biscuit'} is stored as the
password in the @code{user} table. When the user @code{jeffrey} attempts to password in the @code{user} table. When the user @code{jeffrey} attempts to
connect to the server using this password, the @code{mysql} client encrypts connect to the server using this password, the @code{mysql} client encrypts
it with @code{PASSWORD()} and sends the result to the server. The server it with @code{PASSWORD()}, generates an authentification vector
compares the value in the @code{user} table (the encrypted value of based on @strong{encrypted} password and a random number,
@code{'biscuit'}) to the encrypted password (which is @emph{not} obtained from server, and sends the result to the server.
@code{'biscuit'}). The comparison fails and the server rejects the The server uses the @code{password} value in the @code{user} table
(that is @strong{not encrypted} value @code{'biscuit'})
to perform the same calculations, and compares results.
The comparison fails and the server rejects the
connection: connection:
@example @example
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment