gpt4 book ai didi

mysql - 无法安装 mysql 驱动程序 Erlang : src/mysql_auth. erl:178: crypto:sha/1 is deprecated and will be removed in the future

转载 作者:行者123 更新时间:2023-11-29 06:44:29 25 4
gpt4 key购买 nike

我一直在尝试使用 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 的驱动程序有更新吗?

最佳答案

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

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

关于mysql - 无法安装 mysql 驱动程序 Erlang : src/mysql_auth. erl:178: crypto:sha/1 is deprecated and will be removed in the future,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19532719/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com