当我尝试在使用 MySQL 的 cloudfoundry 上运行我的页面时,我收到了这个错误
org.springframework.jdbc.CannotGetJdbcConnectionException:
Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException:
Cannot create PoolableConnectionFactory (Unknown initial character set index '192' received from server.
Initial client character set can be forced via the 'characterEncoding' property.)
我错过了什么 ?我确实尝试在下面将我的 UTF-8 更改为 LATIN,但仍然收到错误
ALTER TABLE t MODIFY col1 VARCHAR(50) CHARACTER SET latin1;
感谢所有的答复
我明白
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_unicode_ci |
| collation_database | utf8_unicode_ci |
| collation_server | utf8_unicode_ci |
+----------------------+-----------------+
来自 cloudfoundry 数据库