Created
December 27, 2017 11:53
-
-
Save Dwiga/e7e39a0a51dc5daf2bd83be25ac2b447 to your computer and use it in GitHub Desktop.
jython connection to mysql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
sys.path.append(os.path.dirname(os.path.realpath('__file__')) + "/python") | |
from com.ziclix.python.sql import zxJDBC | |
cnx = zxJDBC.connect("jdbc:mysql://localhost/yourdb", "username", "password", "org.gjt.mm.mysql.Driver") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment