数据库连接操作类 ... if ($this->version() > '4.1') { /*检查数据库版本*/ $this->query('set names '.$charset); /*设置数据库编码*/ mysql_select_db($dbname,$this->_link) or $this->errmsg('Can\'t select the database!'); /*打开数据库*/ ...
基于14个网页-相关网页
为了使Registry预览版能够创建和使用UTF - 8编码的数据库,在安装这个预览版之前,您必须设置db 2 codepage系统环境变量。
To enable the Registry Preview to create and use a UTF-8 encoded database, before installing the Preview, you must set the db2codepage system environment variable.
您可以以明文形式或base64编码的形式在叫做group . properties的配置文件中输入用户标识和口令,来设置数据库用户。
You can set up the database users either by entering the userid and password in clear text or base64-encoded in the configuration file called group.properties.
重要的是,要在连接数据库之前设置DB 2 CODEPAGE,因为数据转移实用程序会在建立数据库连接时判断编码页。
It is important to set DB2CODEPAGE before connecting to the database because the data movement utilities determine the code page when the connection to the database is established.
应用推荐