2013/03/28

mysql 4.1 style password

最近寫C#.Net連結MySQL遇到『mysql 4.1 style password』,不過其他語言好像也會遇到

解決方式就是對MySQL輸入以下語法,就可以解決問題了
請翻閱參考資料那兩篇文章,會學習到更多XDDD

SET SESSION old_passwords=FALSE;
SET PASSWORD = PASSWORD('[your password]');


參考資料:
http://serverfault.com/questions/476596/mysql-is-there-a-way-to-reverse-to-use-old-password
http://stackoverflow.com/questions/1892607/mysql-password-hashing-method-old-vs-new