FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Fatal Error: Call to undefined function mysql_connect()
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Fatal Error: Call to undefined function mysql_connect() [message #9195] Sat, 15 March 2003 22:17 Go to next message
DaddyFix is currently offline  DaddyFix   Canada
Messages: 1
Registered: March 2003
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Heres the fix for the error below that I recieved while attempting step 2 of the installation process of FUD

Fatal Error: Call to undefined function mysql_connect()

I fixed the error by changing the following link in my php.ini config file for PHP version 4.3.0

DEFAULT
; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =

CHANGED TO
; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =localhost
Re: Fatal Error: Call to undefined function mysql_connect() [message #9203 is a reply to message #9195] Sun, 16 March 2003 15:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
I have no idea why did that fix the problem, the problem you have described (not found function) implies that your PHP does not have MySQL support...

FUDforum Core Developer
Re: Fatal Error: Call to undefined function mysql_connect() [message #27445 is a reply to message #9195] Thu, 08 September 2005 07:13 Go to previous messageGo to next message
fraxon is currently offline  fraxon   Zambia
Messages: 1
Registered: September 2005
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
While the Error suggest the absence of mysql support in php the solution provided above is true. I had the same problem, I am using Debian Sarge 3.1. The error made me reinstall the whole OS which was to no avail. apt-get install php4-mysql did not solve the problem as it was already installed but after reading the suggested solution, I am up my feet and running. just append localhost and then restart the webserver

apache2ctl restart

php.ini
-----------
; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host = localhost

Dont ask me why!! It worked for me. Try it.

[Updated on: Thu, 08 September 2005 07:17]

Report message to a moderator

Re: Fatal Error: Call to undefined function mysql_connect() [message #27448 is a reply to message #27445] Thu, 08 September 2005 09:13 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
It worked because you probably have ini settings indicating that mysql connection settings can only be set via INI and not provided directly.

FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: No mailing list functionality since upgrade
Next Topic: www_root does not correspond to server_root ???
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 12 10:12:07 EST 2024

Total time taken to generate the page: 0.03782 seconds