benlester Posted June 11, 2009 Share Posted June 11, 2009 Hi I have installed PHP5,Apache2.2 and MYSQL. I have read all of the posts explaining how to rectify PHP/MYSQL connectivity issues. I am getting the "Fatal error" message and I have tried absolutely everything I have read on forums over the past 2 days. I have managed to get MYSQL to show in the PHPinfo page however so am confused if I PHP/MYSQL is connected to each other.... Any guidance would be appreciated... Thanks Ben Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/ Share on other sites More sharing options...
jxrd Posted June 11, 2009 Share Posted June 11, 2009 Are you sure you've got the mysql extension installed/enabled? Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/#findComment-853974 Share on other sites More sharing options...
benlester Posted June 12, 2009 Author Share Posted June 12, 2009 yes - I have taken the ; of the ;extension=php_mysql.dll line in php.ini Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/#findComment-854396 Share on other sites More sharing options...
jxrd Posted June 12, 2009 Share Posted June 12, 2009 And you've actually installed the extension? Did you install with the binary or compile yourself? Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/#findComment-854404 Share on other sites More sharing options...
benlester Posted June 15, 2009 Author Share Posted June 15, 2009 Don't you just install the extension by removing the ";" at the start of the line? Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/#findComment-856429 Share on other sites More sharing options...
PFMaBiSmAd Posted June 15, 2009 Share Posted June 15, 2009 What method did you use to show the phpinfo(); results (web browser or command line client) and paste the mysql section that you got. Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/#findComment-856444 Share on other sites More sharing options...
jxrd Posted June 15, 2009 Share Posted June 15, 2009 You need the mysql.dll file as well. Not sure if that's copied to your PHP dir if you don't specify on install. Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/#findComment-856453 Share on other sites More sharing options...
Phobios Posted September 3, 2009 Share Posted September 3, 2009 Thanks everyone for your help. Everything works fine now. Quote Link to comment https://forums.phpfreaks.com/topic/161858-solved-mysql-fatal-errorcall-to-undefined-function-mysql_connect/#findComment-911967 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.