Enter your email address:

Delivered by FeedBurner

HOWTO Fix Fatal error: Call to undefined function: mysql_connect()


StumbleUpon Toolbar

Hi, I want to share this with all of you, today my server suddenly start showing this.

Fatal error: Call to undefined function: mysql_connect()

Googling I found the solution here.

http://www.idealog.us/2005/01/howto_fix_fatal.html

What I had to do is
First,

apt-get install php4-mysql

after that

dpkg-reconfigure php4-mysql

and finaly.

/etc/init.d/mysql restart
and.
/etc/init.d/apache2 restart

I don't know why if it was working before, suddenly stop working, my PHP application (like this one) but it did.

Trackback URL for this post:

http://www.go2linux.org/trackback/14
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting