February 27, 2007

Fatal error: Call to undefined function mysql_connect()

Hah. It seems the crazy errors are plaguing me today. The latest one:

Fatal error: Call to undefined function mysql_connect() …

Sweet…

We moved to a new data center, and this error seems to be related to using PHP on Fedora or Redhat. It seems their default installation doesn’t have MySQL extensions support.

First, make sure there is no section for MySQL when you execute the following PHP:

phpinfo();

If MySQL isn’t there, it’s time to get your admin in the loop.

Filed under: PHP — Michi @ 1:24 pm

Share this

  • Digg
  • Reddit
  • Facebook
  • email
  • StumbleUpon
  • del.icio.us
  • Slashdot
  • DZone
  • Twitter

Related

Today's crazy error of the day is: Fatal error: Call to undefined function preg_match() ... Wahoo! A built in function being undefined! So how's this possible? It seems that if you reinstall PHP without compiling in PCRE (Perl Compatible...
This pops up every so often so I thought I'd dedicate a post to it. JavaScript has no "isset" function. Instead, your best bet is to use the following: if((typeof theVariable) == 'undefined')...

2 Comments »

TrackBack URI | Blog RSS | Comment RSS

  1. Fatal error: Call to undefined function issset()

    Comment by ina — August 11, 2008 @ 7:03 pm

  2. issset is not a real function…

    Comment by Michi — August 11, 2008 @ 7:47 pm

What do you think?