无法安装mysql驱动程序Erlang:src / mysql_auth.erl:178:crypto:sha / 1已弃用,将来会被删除

时间:2013-10-23 04:19:50

标签: mysql erlang erlang-driver

我一直在尝试使用https://github.com/dizzyd/erlang-mysql-driver

安装mysql驱动程序
==> mysql (compile)
compile: warnings being treated as errors
src/mysql_auth.erl:178: crypto:sha/1 is deprecated and will be removed in in a future release; use crypto:hash/2
src/mysql_auth.erl:179: crypto:sha/1 is deprecated and will be removed in in a future release; use crypto:hash/2
src/mysql_auth.erl:180: crypto:sha_final/1 is deprecated and will be removed in in a future release; use crypto:hash_final/2
src/mysql_auth.erl:181: crypto:sha_update/2 is deprecated and will be removed in in a future release; use crypto:hash_update/3
src/mysql_auth.erl:182: crypto:sha_init/0 is deprecated and will be removed in in a future release; use crypto:hash_init/1
src/mysql_auth.erl:182: crypto:sha_update/2 is deprecated and will be removed in in a future release; use crypto:hash_update/3

我正在使用Erlang 5.10.3。驱动程序的任何更新都支持Erlang 5.10.3?

1 个答案:

答案 0 :(得分:2)

您可以使用前叉https://github.com/manastech/erlang-mysql-driver

在84274b52f5中删除了已弃用的加密函数