Take the 2-minute tour ×

So I installed mysql on my linux box and I can login into it using the command line I can create a database, table, all that

I made a phpinfo() script and ran it, but it doesn't seem to recognize that MySQL is installed, am I missing a step here?

The info page returns all other information, which appears to be correct,

any advice would help thanks!

share|improve this question
What distro are you using? You probably need to install the php-mysql package unless you compiled php by hand. –  carson Mar 3 '11 at 22:09
Thanks for the response, I'm using Amazon Linux AMI release 2010.11.1 (beta), Fedora –  Doug Molineux Mar 3 '11 at 22:11
You were right! I installed mysql and php but not php-mysql, I did a yum install php-mysql, restarted apache and it worked! please answer this question and I'll mark as correct, thanks carson! –  Doug Molineux Mar 3 '11 at 22:14
No problem. –  carson Mar 3 '11 at 22:37

1 Answer 1

up vote 3 down vote accepted

Try installing the php-mysql package.

share|improve this answer

Your Answer


