Welcome Guest, Not a member yet? Register   Sign In
Tip for Arch Linux / MySQL users who can't connect to DB
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB