MySQL-Persistence in openHAB2

My MySQL-Persistence stopped working after reinstalling OH2.

Now I don’t know anymore which MySQL-Service I used:

I connect to a local MySQL-server and the connection info is stored in the mysql.cfg

Should both services be installed?

These errors occur:

2016-09-28 12:30:00.240 [WARN ] [sql.internal.MysqlPersistenceService] - mySQL: No connection to database. Can not persist item ‘H_OG_Bad_Stetig (Type=NumberItem, State=0)’! Will retry connecting to database when error count:0 equals errReconnectThreshold:0
2016-09-28 12:30:00.246 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Failed connecting to the SQL database using: driverClass=com.mysql.jdbc.Driver, url=jdbc:mysql://localhost:3306/openhab, user=openhab, password=mypass
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

You should use the service, which you configured. What you have in /persistence/ folder? There should be mysql.persist file with your configuration.
From the logs it looks like you have mysql.persist in /persistence but you are lacking /services/mysql.cfg configuration