# CodeIgniter 连接数据库

**URL:** <https://www.isharkfly.com/t/codeigniter/5081>\
**Category:** PHP\
**Created:** [January 5, 2014, 4:57am UTC](https://www.isharkfly.com/t/codeigniter/5081 "2014-01-05T04:57:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 5, 2014, 4:57am UTC](https://www.isharkfly.com/t/codeigniter/5081/1 "2014-01-05T04:57:44Z")

</div>

基本上来说有两种方法连接数据库，现在分别阐述如下。

[list]  
[_]自动连接  
[_]手动连接  
[/list]
