pycharm mysql driver_Pycharm设置Mysql数据库驱动程序(Pycharm Setting up Mysql Database Driver)...

在PyCharm中尝试设置MySQL数据库连接时遇到ClassNotFoundException: com.mysql.jdbc.Driver错误。已经创建了数据库并在Django等环境中正常工作。下载了MySQL的jar文件,但不清楚如何在PyCharm中包含它,尝试点击“安装驱动”按钮未见效果。寻求解决数据库连接问题的方法。
摘要由CSDN通过智能技术生成

Iam trying to set up mysql database connectivity in pycharm... I have already created the schema and it works in django etc... Iam trying to import the data source directly to pycharm but i get the following error...

Connection to Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

at java.lang.ClassLoader.loadClass(ClassLoader.java:321)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)

at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:186)

at com.intellij.persistence.database.console.RemoteJdbcServer.main(RemoteJdbcServer.java:15)

failed

What should i do to make the database connectivity possible??? i have downloaded the mysql jar file for the above class... How do i include it in pycharm??? (I have clicked the install drivers button that comes as a hint but nothing happens)... Thnx...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值