Java 如何安装com.mysql.jdbc.Driver“找不到类名的驱动程序:com.mysql.jdbc.Driver”?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18617108/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 09:34:09  来源:igfitidea点击:

How to install com.mysql.jdbc.Driver "Could not find driver with class name: com.mysql.jdbc.Driver"?

javamysqlubuntudriverconfluence

提问by RayofCommand

I am setting up Atlassian Confluence and when it comes to choosing the database I stuck when I choose "use external Mysql DB" I saw some tutorials, but for me it didnt work out the way it should work. I use ubuntu 12.04 Server and have mysql installed. Now I tried to run confluence with an external database and I need this connector driver to make it work.

我正在设置 Atlassian Confluence 并且在选择数据库时我在选择“使用外部 Mysql DB”时卡住了我看到了一些教程,但对我来说它没有按照它应该的方式工作。我使用 ubuntu 12.04 服务器并安装了 mysql。现在我尝试使用外部数据库运行 confluence,我需要这个连接器驱动程序才能使其工作。

I already did :

我已经做了 :

sudo apt-get install libmysql-java

and I have java installed.

我已经安装了java。

java version "1.6.0_27"

any help is upvoted fast :)

任何帮助都会很快得到支持:)

采纳答案by Jayaram

You don't have mysql-connectorxx.jarin your class pathmake sure its added the error you are facing will be resolved

你不必mysql-connectorxx.jar在你class path确定它加入你所面对的错误将得到解决