今兒在做實驗用到mysql數(shù)據(jù)庫時,用戶密碼忘記了,讓我也是找了半天:現(xiàn)在給大家介紹下我自己的方法:用到了mysql自身的函數(shù)來測試的。
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)
新聞熱點
疑難解答