Issue when accessing to MySQL database
Hi all,
I'm using the last version of sikuli on Windows 7 with jre7.
I downloaded the last java mysql connector (5.1.28) and added a env variable :
CLASSPATH = C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-
I'm so launching a sikuli script (no IDE) with basically :
from sikuli import *
from com.ziclix.
j = 'jdbc:mysql:
u = 'root'
p = 'mypassword'
m = 'com.mysql.
try:
con = zxJDBC.connect(j, u, p, m)
except Exception, e:
print "database connection issue : ", e
And I'm getting :
database connection issue : driver [com.mysql.
Looking at another post (question 202408) I saw that RaiMan proposed a bat script like :
set cp=C:\Program Files (x86)\MySQL\MySQL Connector J\mysql-
set cp=%cp%
java -cp %cp% org.python.
When I run this bat script I get :
Error: Could not find or load main class Files
Where Am I wrong ?
Thanks a lot,
Rod
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- rod
- Solved:
- Last query:
- Last reply:
This question was reopened
- by rod