Those are the relevant parts:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL
syntax; check the manual that corresponds to your MySQL server version for the
right syntax to use near '????????????????' at line 1
...
com.mysql.jdbc.ConnectionImpl.configureClientCharacterSet(ConnectionImpl.java:1890)
...
java.sql.DriverManager.getConnection(libgcj.so.10)
Those question marks indicate a serious character encoding problem during the query to configure the client charset.
As first try, open the my.cnf file and ensure that the following two entries are present:
character_set_server=utf8
collation_server=utf8_general_ci
As second try, replace the GCJ by OpenJDK or Oracle (Sun) JDK which are way more robust. The GCJ is namely known to have its oddities.