Cant connect to MySQL server using source code in IntelliJ IDEA 2019

Open Cart5 years ago

I am building my own version of Traccar in IntelliJ IDEA. I have changed my database configurations in Traccar.xml but I can see new tables created in a schema. Traccar creates H2 database files automatically.

Anton Tananaev5 years ago

Make sure you are changing the right config file.

Open Cart5 years ago

I am changing Traccar.xml. Acoording to the documentation, this is the only file I need to modify for database connectivity.
I have also modified default.xml just for being on safe side.

Anton Tananaev5 years ago

Are you running it from intellij? Which config have you set as a command line parameter there?

Open Cart5 years ago

Hello Anton,
Thank you for your help. I just figured it out. I was using debug.xml but I was modifying traccar.xml for database connectivity.
Regards

Innodel3 years ago

Hello Anton,

Error:  Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

Please help me.