Still having mysql_connect problems

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
doublef
Forum Newbie
Posts: 1
Joined: Sat Aug 13, 2005 5:49 am

Still having mysql_connect problems

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply