MySQL Forums
Forum List  »  Spanish

Re: Error al crear usuario con OLD_PASSWORD
Posted by: Jesús Uzcanga
Date: August 25, 2014 01:32PM

Nicolas (valla nombre, espero que no seas Venezolano).

Cuando creas un password para un usuario en mysql, la base de datos no guarda lo que tu tecleaste (en este caso 123) si no que guarda un código encriptado en formato hexadecimal.

Puedes Generar este código encriptado simplemente ejecutando lo siguiente en tu Mysql:

mysql> SELECT PASSWORD('lala');
+-------------------------------------------+
| PASSWORD('lala') |
+-------------------------------------------+
| *46ABF58B20022A84DF7B2E8B1AC8219C8DA71553 |
+-------------------------------------------+
1 row in set (0.00 sec)


O con OLD_PASSWORD:

mysql> SELECT OLD_PASSWORD('lala');
+----------------------+
| OLD_PASSWORD('lala') |
+----------------------+
| 0f0ea7602c473904 |
+----------------------+
1 row in set (0.00 sec)


Luego debes utilizar ese código hexadecimal en tu script de SET PASSWORD.

NOTA: Investiga un poco más si quieres saber como evitar tener que hacer este cambio.

___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga

We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.

____________________________________________________________
https://www.linkedin.com/in/jauzcanga/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Error al crear usuario con OLD_PASSWORD
1026
August 25, 2014 01:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.