【发布时间】:2012-07-18 10:56:28
【问题描述】:
当我尝试在使用 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 数据库
【问题讨论】:
标签: mysql spring cloud-foundry