Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 down vote accepted

Try installing the php-mysql package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.