Did you:
Create and empty database to hold the data and,
Place the proper code in the /opt/traccar/conf/traccar.xml using the correct database name and password??
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://[HOST]:3306/[DATABASE]?useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>[USER]</entry>
<entry key='database.password'>[PASSWORD]</entry>
Then restart traccar service?
yes
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='config.default'>./conf/default.xml</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/traccar?useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>cocotic</entry>
<entry key='database.password'>cocotic2019*</entry>
</properties>
What error do you see in the logs?
2019-03-30 12:33:25 INFO: SELECT `LOCKED` FROM traccar.DATABASECHANGELOGLOCK WHERE ID=1
I'll repeat my question again, if it was not clear. What error do you see in the logs?
How can I see the errors in the logs?
I do not speak english, i am from colombia :)
Use google translator, we'll do fine with that. Your execution is failing, could be user privileges, wrong path, etc.
logs
...
2019-04-05 17:36:45 INFO: SELECT `LOCKED` FROM traccar.DATABASECHANGELOGLOCK WHERE ID=1
2019-04-05 17:36:45 INFO: Waiting for changelog lock....
2019-04-05 17:36:55 INFO: SELECT `LOCKED` FROM traccar.DATABASECHANGELOGLOCK WHERE ID=1
2019-04-05 17:36:55 INFO: Waiting for changelog lock....
2019-04-05 17:37:05 INFO: SELECT `LOCKED` FROM traccar.DATABASECHANGELOGLOCK WHERE ID=1
2019-04-05 17:37:05 INFO: Waiting for changelog lock....
2019-04-05 17:37:15 INFO: SELECT ID,`LOCKED`,LOCKGRANTED,LOCKEDBY FROM traccar.DATABASECHANGELOGLOCK WHERE ID=1
2019-04-05 17:37:15 ERROR: Main method error - Could not acquire change log lock. Currently locked by 0:0:0:0:ef9e:8f3a:ac04:cf7b%enp2s0 (0:0:0:0:ef9e:8f3a:ac04:cf7b%e$
good, I have a problem when I link with mysql
help me please