在 Codeigniter 中使用 mysql 数据库是轻而易举的事情,只要在 application/config/database.php
配置好数据库名称、帐号密码即可使用。
换成 sqlite 的话稍微麻烦点,Codeigniter 默认使用 PHP5 自带驱动来支持 sqlite 且该驱动只支持 sqlite 2.x 版本。好在从 Codeigniter 2.1 开始已经内置了 sqlite 的 pdo 驱动,通过 pdo 驱动就可以实现对 sqlite3 的支持。
编辑 application/config/database.php
里的选项:
$db['default']['hostname'] = 'sqlite:' . FCPATH . '../db/tms.db';$db['default']['username'] = '';$db['default']['password'] = '';$db['default']['database'] = '';$db['default']['dbdriver'] = 'pdo';$db['default']['dbprefix'] = '';$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;
这样就可以直接访问 sqlite 数据库了。
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » 在 Codeigniter 中使用 sqlite3 数据库
波比源码 » 在 Codeigniter 中使用 sqlite3 数据库
order levaquin online levofloxacin 500mg over the counter
avodart over the counter avodart 0.5mg canada order ondansetron sale
lamotrigine 200mg over the counter retin gel tablet cheap tretinoin gel
order tadalis 20mg order avana 200mg pills diclofenac usa
buy generic cialis 20mg ed solutions order viagra 50mg pill
order anastrozole 1 mg for sale Fda approved viagra buy sildenafil 100mg generic
acheter cialis tadalafil 10mg en ligne viagra 50mg sans ordonnance
buy deltasone 10mg pill sildenafil for women sildenafil 20mg
cialis generika viagra 100mg kaufen ohne rezept sildenafil kaufen für männer
order accutane 20mg online cheap order stromectol 3mg without prescription stromectol medicine
purchase doxycycline for sale buy clomid pills lasix 100mg usa
catapres cheap antivert 25mg price buy generic tiotropium bromide
imdur 20mg without prescription purchase azathioprine sale order telmisartan 80mg pill
molnupiravir 200 mg canada order prevacid 15mg without prescription prevacid 30mg ca
cialis 5mg canada brand phenazopyridine 200mg symmetrel 100mg price
revia 50mg without prescription oral femara 2.5 mg buy aripiprazole 30mg pills
avlosulfon online order buy allegra 120mg for sale buy generic perindopril 8mg
provera 5mg cheap praziquantel us cyproheptadine price
luvox oral ketoconazole 200mg us glucotrol online order
order isotretinoin generic order isotretinoin 10mg pill deltasone 5mg generic
buy furosemide generic furosemide 40mg generic buy hydroxychloroquine
order chloroquine pills buy olumiant online cheap baricitinib medication
itraconazole for sale buy itraconazole 100mg tinidazole 500mg generic
order glycomet online free shipping cialis cialis next day
zyprexa pill nebivolol online purchase diovan generic
buy clozaril 100mg pills clozaril tablet order decadron 0,0,5 mg pills
guaranteed viagra overnight delivery usa purchase lisinopril online cheap order lisinopril 2.5mg sale
zyvox without prescription order linezolid sale casino online real money
order cialis sale buy cialis 40mg pill sildenafil 100mg us
buy zyloprim without prescription order rosuvastatin 20mg for sale ezetimibe oral
purchase cozaar topiramate brand purchase topiramate without prescription
order sumatriptan online generic avodart avodart 0.5mg generic
cost gloperba best casino online online gambling for real money
order zantac 150mg generic celecoxib 100mg oral order celecoxib 200mg for sale
free online blackjack online roulette game free spins no deposit us
cialis 20mg for sale buy generic ciprofloxacin 500mg cipro 500mg over the counter
order zocor 10mg sale buy generic valtrex 1000mg buy propecia 1mg generic
poker game gambling games tadalafil 5mg for sale
letter writing services order stromectol 3mg online cheap stromectol pill price