[英]How could I solve - Failed to download mysql connector .jar… Received fatal alert: protocol_version?
I am trying to download the missing driver files on phpStorm for mySQL.
我正在尝试在phpStorm上为mySQL下载缺少的驱动程序文件。 I keep getting this error:
我不断收到此错误:
Failed to download 'https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar': Received fatal alert: protocol_version
I haven't found any solutions to this problem online. 我没有在线找到任何解决此问题的方法。 Would really appreciate if someone could let me know how I could achieve this.
如果有人能让我知道如何实现这一目标,我将非常感激。
Thanks! 谢谢!
I recommend taking a look in IDE log files to see if they may have additional details as to why the download is failing. 我建议查看IDE日志文件,以查看它们是否可能包含有关下载失败原因的更多详细信息。
Use Java 8 and also It needs to enable TLS 1.2
protocol with Java property in the command line. 使用Java 8,还需要在命令行中使用Java属性启用
TLS 1.2
协议。
mvn -Dhttps.protocols=TLSv1.2 install
Additionally, you can download the file and install them manually. 此外,您可以下载文件并手动安装它们。
I couldn't find any official JetBrains MySQL driver repo page, but I found some old URLs that are official and work, 我找不到任何正式的JetBrains MySQL驱动程序回购页面,但是我发现了一些正式且有效的旧URL,
http://download.jetbrains.com/idea/jdbc-drivers/mysql-connector-java-5.1.45-bin.jar http://download.jetbrains.com/idea/jdbc-drivers/mysql-connector-java-5.1.46-bin.jar http://download.jetbrains.com/idea/jdbc-drivers/mysql-connector-java-5.1.45-bin.jar http://download.jetbrains.com/idea/jdbc-drivers/mysql-connector-java -5.1.46-bin.jar
And also you can get all the old to latest MySQL Connectors versions from the Maven Repository . 而且,您还可以从Maven存储库中获取所有旧的到最新的MySQL连接器版本。
PS: To know how to add an external MySQL Connector library to PhpStorm . PS:要了解如何向PhpStorm添加外部MySQL连接器库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.