집 >데이터 베이스 >MySQL 튜토리얼 >SSH连接DB2的问题之一
昨天用ssh连接数据库突然报错如下(db2客户端连接正常): [db2inst1@CONT root]$ db2 connect to test SQL0332N Character conversion from the source code page 1386 to the target code page 819 is not supported. SQLSTATE=57017 [db2inst1@CONT root]
昨天用ssh连接数据库突然报错如下(db2客户端连接正常):
[db2inst1@CONT root]$ db2 connect to test
SQL0332N Character conversion from the source code page "1386" to the target
code page "819" is not supported. SQLSTATE=57017
[db2inst1@CONT root]$ db2set DB2CODEPAGE=1386
DB2SET processing complete, rc = 4, SQLCODE = 4
最后发现是ssh字符集的问题。
下载一个Xshell4 + Xftp4 ,安装后登陆解决。