首页 > 代码库 > ci 连接myssql

ci 连接myssql

由于要将mssql 和 mysql 里面的数据进行对比,So.
配置:database.php

$db[‘default‘][‘hostname‘] = ‘192.168.1.222‘; $db[‘default‘][‘username‘] = ‘root‘; $db[‘default‘][‘password‘] = ‘test‘; $db[‘default‘][‘database‘] = ‘demo_database‘; $db[‘default‘][‘dbdriver‘] = ‘mysql‘; $db[‘default‘][‘dbprefix‘] = ‘iwebshop_‘; $db[‘default‘][‘pconnect‘] = TRUE; $db[‘default‘][‘db_debug‘] = TRUE; $db[‘default‘][‘cache_on‘] = FALSE; $db[‘default‘][‘cachedir‘] = ‘‘; $db[‘default‘][‘char_set‘] = ‘utf8‘; $db[‘default‘][‘dbcollat‘] = ‘utf8_general_ci‘; $db[‘default‘][‘swap_pre‘] = ‘‘; $db[‘default‘][‘autoinit‘] = TRUE; $db[‘default‘][‘stricton‘] = FALSE;   $db[‘default‘][‘hostname‘] = ‘192.168.1.222‘; $db[‘default‘][‘username‘] = ‘sa‘; $db[‘default‘][‘password‘] = ‘test‘; $db[‘default‘][‘database‘] = ‘demo_database‘; $db[‘default‘][‘dbdriver‘] = ‘sqlsrv‘; $db[‘default‘][‘dbprefix‘] = ‘‘; $db[‘default‘][‘pconnect‘] = TRUE; $db[‘default‘][‘char_set‘] = ‘utf-8‘;  

ci 连接myssql