Hi Hans,
ProxySQL expects the database to exist.
I assume JDBC doesn't check if the database exists, but it relies on receiving an error and then creating the database in case of error.
If my assumption is correct, to make it works with ProxySQL , JDBC should first check if the database exists.
Thus, that JDBC option can't work with ProxySQL.
The longer answer is that schemaname is part of ProxySQL routing algorithm: thus it really makes no sense to have routing to a server where the schema doesn't exist.
Create the schema beforehand.
Thanks,
René