using com.mysql.jdbc.Driver (official JDBC driver from MySQL) in Sikuli script --- workaround
********** workaround
see comment #6
-------
I'm trying to make a connection in Sikuli script with a MySQL database.
(First (after of course creating the database, downloading and installing the driver....) set the classpath)
My code:
from com.ziclix.
jdbc_url = 'jdbc:mysql:
username = 'root'
password = 'password'
MySQLDriver = 'com.mysql.
urldb = zxJDBC.
#do something with it
..
..
I get in return:
zxJDBC.
I followed the Jython documentation and this should work.
Does Sikuli handle tar files differently then normal Jython(does it, for example, ignore the classpath)?
If so, how do I make my driver known in Sikuli?
I'm new at the Java/Jython/Sikuli business so If there is something really simple that I couldn't have missed, please say it because I probably did.
Thanks
Dave
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dave Doodeman
- Solved:
- Last query:
- Last reply: