使用 brew 安裝了 mssql-tools 后,用 sqlcmd 連接 SQL Server 2014 執(zhí)行 SQL 腳本出現(xiàn)如下報(bào)錯(cuò):文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-575281.html
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : SSL Provider: [OpenSSL library could not be loaded, make sure OpenSSL 1.0 or 1.1 is installed].
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Client unable to establish connection.
解決方法:
將軟鏈接 /usr/local/opt/openssl 的源文件從 openssl@3.0 換成 openssl@1.1.文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-575281.html
brew install openssl@1.1
ls -l /usr/local/opt/openssl
cd /usr/local/opt/
rm -f openssl
ln -s ../Cellar/openssl\@1.1/1.1.1o openssl
到了這里,關(guān)于MacOS Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : OpenSSL library could not be loaded的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!