【发布时间】:2016-08-31 04:28:50
【问题描述】:
我对 grocercrud 有疑问,它真的支持 DB2 吗?
因为我尝试过但失败了。
这是我的连接设置(Codeigniter 3):
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'Driver={IBM DB2 ODBC DRIVER - DB2COPY1};Database=SAMPLE;hostname=localhost;port=50000;protocol=TCPIP;" . "boby.wayz; 1q2w3e4r5t;',
'username' => 'boby.wayz',
'password' => '1q2w3e4r5t',
'database' => 'SAMPLE',
'dbdriver' => 'odbc',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
这是我遇到的错误:
错误号:S0002
[IBM][CLI Driver][DB2/NT64] SQL0204N “INFORMATION_SCHEMA.TABLES”是一个 未定义的名称。 SQLSTATE=42704
SELECT table_name FROM information_schema.tables WHERE table_schema = '公共'
文件名: C:/xampp/htdocs/personal/dailywork/system/database/DB_driver.php
行号:691
【问题讨论】:
标签: php codeigniter db2 grocery-crud