4

According to php.net, mysql is deprecated and mysqli should be used instead. Why is 'dbdriver' (in application/config/database.php) set as mysql by default instead of mysqli or better yet PDO?

solstice
  • 442
  • 1
  • 4
  • 18
  • 2
    It was deprecated but same as for some reason a lot of businesses are stuck in XP, a lot of devs and hosts are in php4 - early php5. You can (to some degree) use CodeIgniter in an older version of PHP. – ggdx Oct 25 '14 at 22:24
  • @dwhite.me so if i'm starting a new project I should change it to mysqli right? Or PDO? – solstice Oct 25 '14 at 22:41
  • 1
    I use mysqli, never had any issue. – ggdx Oct 25 '14 at 22:47

1 Answers1

3

You can always change that to mysqli, but before changing to mysqli enable mysqli in php.ini As described in this answer.

Community
  • 1
  • 1
Shantanu
  • 692
  • 5
  • 20