Page 1 of 1

Still having mysql_connect problems

Posted: Sat Aug 13, 2005 5:53 am
by doublef
Does anybody know how to fix the mysql_connect() undigined problem.

I am running apache on a winXP machine and php5. I have tried most solutions but none seem to work.
Can somone tell me step by step how to fix this problem please.

Posted: Sat Aug 13, 2005 6:00 am
by onion2k
The PHP5 binary doesn't support MySQL by default. It was replaced with mysqli. You'll need to build it from the source with the --with-mysql option.

Posted: Sat Aug 13, 2005 8:50 am
by feyd
don't need to build from source anything on windows :P

You may or may not have a php_mysql.dll file in your php5 folders. You'll need to edit your php.ini such that the engine loads that extension. A fairly simple and painless process.