Use the mysql connector from maven repository.
Dont internally use some deprecated (old names for) method calls.