/    Sign up×
Community /Pin to ProfileBookmark

i just installed apache, with mysql, and php5, now everything seemed to be working properly, i did a php test script using just a echo, and that worked fine, but when i did a mysql_connect(), i get this error

Fatal error: Call to undefined function mysql_connect() in C:webmysqltest.php on line 5

any suggestions?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@chrisranjanaSep 03.2005 — This should help

http://www.faqts.com/knowledge_base/view.phtml/aid/23162/fid/1150



Windows:
------------------


The compiled Windows binaries (what you download off php.net) no longer

have MySQL enabled by default. Instead, you need to take the following

steps during setup:

a) Enable php_mysql.dll in php.ini Be 100% certain you are editing

the proper php.ini*

b) Be sure to copy the libmySQL.dll from the dll/ folder to the

location install.txt asks you to move all dll's in dll/ to.

This is the step most miss. Essentially it needs to be available

to your systems PATH which ideally you'll edit your Windows system

PATH environment variable to include the PHP dir. Doing so would

however require a reboot of Windows but in the end is worth it as

it means all PHP files are in ONE directory so upgrades are easy.

c) Restart web server

d) Further problems? Read the manual.

*
http://php.net/manual/en/install.windows.manual.php

* http://php.net/manual/en/faq.installation.php



[/quote]
×

Success!

Help @keko2005 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...