基於mysql數據庫的暗碼成績詳解。本站提示廣大學習愛好者:(基於mysql數據庫的暗碼成績詳解)文章只能為提供參考,不一定能成為您想要的結果。以下是基於mysql數據庫的暗碼成績詳解正文
今兒在做試驗用到mysql數據庫時,用戶暗碼忘卻了,讓我也是找了半天:如今給年夜家引見下我本身的辦法:用到了mysql本身的函數來測試的。
mysql> select user,password,host from user;
+------+------------------+-----------+
| user | password | host |
+------+------------------+-----------+
| root | 773359240eb9a1d9 | localhost |
| root | | fsailing1 |
| root | | 127.0.0.1 |
| root | 309e1248634a4f61 | % |
+------+------------------+-----------+
4 rows in set (0.00 sec)
mysql> password("root");
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'password("root")' at line 1
mysql> select password("root");
+------------------+
| password("root") |
+------------------+
| 67457e226a1a15bd |
+------------------+
1 row in set (0.00 sec)
mysql> select password("chen");
+------------------+
| password("chen") |
+------------------+
| 309e1248634a4f61 |
+------------------+
1 row in set (0.00 sec)