Tip for Arch Linux / MySQL users who can't connect to DB - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Tip for Arch Linux / MySQL users who can't connect to DB (/showthread.php?tid=10034) |
Tip for Arch Linux / MySQL users who can't connect to DB - El Forum - 07-16-2008 [eluser]cbmeeks[/eluser] I don't know if everyone has had this problem using Arch Linux CI (PHP) but I thought I would share just in case. Let's say you install apache and PHP with: pacman -S apache php All is fine. Then, you install MySQL pacman -S mysql All is fine. But for some reason, when CI actually tries to connect to the DB, nothing happens. Even though your $config is perfect. The tip is to look at the bottom of your php.ini file. Look for ;extension=mysql.so Remove the ; and restart httpd. Yup. I scratched my head a few times over that one. The extension wasn't being loaded by default. Which is a good thing. You don't want everything under the sun to autoload. Be sure to check those other extensions if things simply aren't working. Anyway, hope the tip helps someone. -cbmeeks |