使用 Ballerina MYSQL 客户端连接时 sql 连接器配置错误

Error in sql connector configuration when connecting using Ballerina MYSQL Client

我正在尝试使用 Ballerina Mysql 客户端发表评论。(Ballerina 版本 - 0.990.2,MySQL JDBC driver-5.1.6)但我遇到了错误作为

error: error in sql connector configuration:Failed to initialize pool: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.:Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property. {}

 mysql:Client testDB = new({
            host: "localhost",
            port: 3306,
            name: "users",
            username: "root",
            password: "password",
            poolOptions: { maximumPoolSize: 5 },
            dbOptions: { useSSL: false }
        });

我找到了错误的解决方案。这是由于 mysql 版本和 MySQL 连接器版本不匹配。我从 http://central.maven.org/maven2/mysql/mysql-connector-java/

下载了合适的版本