在我的Windows 7機器上的PyCharm(2.0 Beta 2),但是我無法加載sqlite3數據庫的內容和模式。在PyCharm的數據源無法連接到sqlite3數據庫
我下載到兩個sqlite驅動程序的目錄:從Zentus的sqlitejdbc-v056.jar和安全的一方從Xerial sqlitejdbc-3.7.2。
- JDBC驅動程序類設置爲org.sqlite.JDBC
- 的數據庫URL是 設置爲:JBDC:sqlite的:C:/Users/Myself/path/to/db.db
- 沒有用戶名或密碼 。
當我點擊「測試連接」時,一切正常,並且「連接成功」,當我點擊刷新模式時,它會顯示「0表可用」。
我想這個錯誤是:從磁盤或URL加載JDBC驅動程序,但都希望通過「Connection Succesful」語句來緩解。
該數據庫是可加載的,並在我的Mozilla Firefox SQLite管理器擴展中包含內容。
idea.log輸出:
Zentus:
2011-12-07 14:06:14,367 [ 783461] INFO - ution.rmi.RemoteProcessSupport - "c:\program files (x86)\jetbrains\pycharm 111.33\jre\jre\bin\java" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\PyCharm 111.33\plugins\DatabaseSupport\lib\jdbc-console.jar;C:\Program Files (x86)\JetBrains\PyCharm 111.33\lib\util.jar;C:\Program Files (x86)\JetBrains\PyCharm 111.33\lib\annotations.jar;C:\SENSORED\shared-development\jdbc-drivers-pycharm\sqlitejdbc-v056.jar" com.intellij.persistence.database.console.RemoteJdbcServer org.sqlite.JDBC
2011-12-07 14:06:14,537 [ 783631] INFO - ution.rmi.RemoteProcessSupport - Port/ID:8205/RemoteDriverImplfd8de8cc
2011-12-07 14:06:14,720 [ 783814] INFO - ution.rmi.RemoteProcessSupport - Process finished with exit code 1 `
Xerial:
2011-12-07 14:02:19,768 [ 548862] INFO - ution.rmi.RemoteProcessSupport - "c:\program files (x86)\jetbrains\pycharm 111.33\jre\jre\bin\java" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\PyCharm 111.33\plugins\DatabaseSupport\lib\jdbc-console.jar;C:\Program Files (x86)\JetBrains\PyCharm 111.33\lib\util.jar;C:\Program Files (x86)\JetBrains\PyCharm 111.33\lib\annotations.jar;C:\SENSORED\shared-development\jdbc-drivers-pycharm\sqlite-jdbc-3.7.2.jar" com.intellij.persistence.database.console.RemoteJdbcServer org.sqlite.JDBC
2011-12-07 14:02:19,967 [ 549061] INFO - ution.rmi.RemoteProcessSupport - Port/ID:47142/RemoteDriverImpl2975ea52
2011-12-07 14:02:20,445 [ 549539] INFO - ution.rmi.RemoteProcessSupport - Process finished with exit code 1
2011-12-07 14:02:22,823 [ 551917] INFO - ution.rmi.RemoteProcessSupport - "c:\program files (x86)\jetbrains\pycharm 111.33\jre\jre\bin\java" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\PyCharm 111.33\plugins\DatabaseSupport\lib\jdbc-console.jar;C:\Program Files (x86)\JetBrains\PyCharm 111.33\lib\util.jar;C:\Program Files (x86)\JetBrains\PyCharm 111.33\lib\annotations.jar;C:\SENSORED\shared-development\jdbc-drivers-pycharm\sqlite-jdbc-3.7.2.jar" com.intellij.persistence.database.console.RemoteJdbcServer org.sqlite.JDBC
2011-12-07 14:02:23,006 [ 552100] INFO - ution.rmi.RemoteProcessSupport - Port/ID:37172/RemoteDriverImpl304666a8
2011-12-07 14:02:23,305 [ 552399] INFO - ution.rmi.RemoteProcessSupport - Process finished with exit code 1`
這兩個驅動程序都會發生嗎?我們在http://youtrack.jetbrains.net/issue/IDEA-78339上記錄了Xerial驅動程序的問題,該問題看起來很相似。你能檢查'idea.log'作爲例外嗎? – CrazyCoder
我在調用驅動程序和數據庫時添加了idea.log。檢查'連接'以及'刷新模式'。可能我會將此添加到IDEA-78339的問題中。 – jochem