Skip to main content
1-Visitor
January 8, 2021
Solved

Connection to mysql database

  • January 8, 2021
  • 1 reply
  • 3544 views

I am trying to connect to a database but it's not working. I downloaded the mysql connector (sqljdbc42.jar) and I put it in the tomcat/lib folder. The configuration is like this:

 

com.mysql.jdbc.Driver

jdbc:mysql:/ip:3306/thingworx?user=x&password=x

 

Do you know how to fix this? Thankyou!

Best answer by anarwal

HI @BSUN_RO , Which documentation you are following ?. Have you tried https://www.ptc.com/en/support/article/CS243088 

1 reply

5-Regular Member
January 8, 2021

Hi @BSUN_RO , First you need to check the connectivity between platform and the database server . Try ping to database ip from platform server . If that got success check for error logs in Application.logs in ThingworxStorage/logs folder

BSUN_RO1-VisitorAuthor
1-Visitor
January 8, 2021

Thankyou, I didnt knew about this logs. I found this error:

ERROR starting: JDBC Driver Class Not Found: com.mysql.jdbc.Driver

Do I need to rename the jar file to "com.mysql.jdbc.Driver" ?

anarwal5-Regular MemberAnswer
5-Regular Member
January 8, 2021

HI @BSUN_RO , Which documentation you are following ?. Have you tried https://www.ptc.com/en/support/article/CS243088