Fatal Error: Call to undefined function mysql_connect() [message #9195] |
Sat, 15 March 2003 22:17 |
DaddyFix
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 #27445 is a reply to message #9195] |
Thu, 08 September 2005 07:13 |
fraxon
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
|
|
|
|