doutao6653 2016-08-31 04:28
浏览 33

是杂货店对DB2的支持吗?

i have question about grocercrud, does it really support for DB2?

because i had tried and it failed.

this is my connection setup (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
);

and this the error that i've got:

Error Number: S0002

[IBM][CLI Driver][DB2/NT64] SQL0204N "INFORMATION_SCHEMA.TABLES" is an undefined name. SQLSTATE=42704

SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'

Filename: C:/xampp/htdocs/personal/dailywork/system/database/DB_driver.php

Line Number: 691

  • 写回答

1条回答 默认 最新

  • doufen3838 2016-08-31 16:24
    关注

    The website says in known issues that it only supports MySQL with MySQLi.

    DB2 provides a MySQL compatibility mode (but this requires that the database be created after MySQL compatibility mode is already enabled). This would solve the initial problem you're seeing (a database created with MySQL compatibility mode will have the view INFORMATION_SCHEMA.TABLES), but it's not clear whether that will truly solve the problem of getting Grocery CRUD to work with DB2.

    评论

报告相同问题?

悬赏问题

  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值