/    Sign up×
Community /Pin to ProfileBookmark

call to undefined function mysql_pconnect

Alright, I’m setting up a server with mysql and php.

When trying to connect to the database; I get that error.

Help?

to post a comment
PHP

11 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsMar 16.2006 — see if the mysql extension is loaded, i can't remember if it is php 4 or 5 you have to manual add it to the php.ini file:

(win32)extension=php_mysql.dll(unix)extension=php_mysql.so
Copy linkTweet thisAlerts:
@R_NoonauthorMar 16.2006 — The line was not there originally, but now it appears that the php_mysql.dll doesn't exist.

I looked in the php/extensions directory, and did not see it there either.

PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found. in Unknown on line 0
Copy linkTweet thisAlerts:
@R_NoonauthorMar 16.2006 — Alright, examining the problem more thoroughly.

In my C: I don' thave a mysql folder.

In my c:program files I have a mysql folder.

In the mysql folder, I have MySQL administrator 1.1 and MySQL Server 5.0

I am using php 5.1.2
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYMar 16.2006 — but still no php_mysql.dll ?
Copy linkTweet thisAlerts:
@R_NoonauthorMar 16.2006 — Still no php_mysql.dll
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYMar 16.2006 — how did you install PHP?
Copy linkTweet thisAlerts:
@R_NoonauthorMar 16.2006 — From the win32 exe file fron php.net
Copy linkTweet thisAlerts:
@R_NoonauthorMar 20.2006 — Question not yet answered
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYMar 20.2006 — Get the ZIP
Copy linkTweet thisAlerts:
@R_NoonauthorMar 21.2006 — And do what, just overwrite my php directory?
Copy linkTweet thisAlerts:
@chazzyMar 21.2006 — no

Don't do any of that.

You need to install the mysql dll separately, you download it mysql.com

See here:

Installation on Linux Systems

PHP 4

The option --with-mysql is enabled by default. This default behavior may be disabled with the --without-mysql configure option. If MySQL is enabled without specifying the path to the MySQL install DIR, PHP will use the bundled MySQL client libraries.

Users who run other applications that use MySQL (for example, auth-mysql) should not use the bundled library, but rather specify the path to MySQL's install directory, like so: --with-mysql=/path/to/mysql. This will force PHP to use the client libraries installed by MySQL, thus avoiding any conflicts.

PHP 5+

MySQL is not enabled by default, nor is the MySQL library bundled with PHP. Read this FAQ for details on why. Use the --with-mysql[=DIR] configure option to include MySQL support. You can download headers and libraries from MySQL.
[/quote]


http://dev.mysql.com/downloads/connector/php/
×

Success!

Help @R_Noon 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 5.15,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...