Fix: Call to undefined function mysql_pconnect() Line 355

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
mrvierra
Posts: 3
Joined: Fri Feb 17, 2006 9:54 pm

Fix: Call to undefined function mysql_pconnect() Line 355

Post by mrvierra »

Install PHP 4.X
not 5.X

error goes away instantaly.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What version of mysql 5.x did you install?

ADODB, what we use for Database connections, is suppose to auto detected the functions to use to connect to the database.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Hello,

Just thought I would mention that I had this error when test restoring one of our servers yesterday - was using php5 (latest win32 binaries)

I fixed a couple of errors in the php.ini file and include/config.php (one was just me using localhost rather than 127.0.0.1)

Though as per usual... - after changing these and reloading it sorted out my problem!

HTH

Lard
---- lard007skype ----
jeab_yim
Posts: 12
Joined: Fri Feb 24, 2006 9:51 am

same error

Post by jeab_yim »

i have same error i fix that you recomment but can't
jeab_yim
Posts: 12
Joined: Fri Feb 24, 2006 9:51 am

same error

Post by jeab_yim »

i have same error i fix that you recomment but can't
jdg
Posts: 15
Joined: Sat Mar 04, 2006 2:11 pm

Post by jdg »

Same error ... followed configurations to the letter and verified using mysqladministrator that old-passwords are being used. Also used the tips at dev.mysql.com below to verify that the cactiuser was fine.

mysql> SELECT Host, User, Password FROM mysql.user
-> WHERE LENGTH(Password) > 16;

The output of this command only shows (1) row ... for root.

Thoughts? Does localhost have to be replaced *everywhere* with 127.0.0.1 or just that one file indicated by the FAQ? (cactid.conf)

Thanks in advance!
jdg
Posts: 15
Joined: Sat Mar 04, 2006 2:11 pm

Post by jdg »

lard wrote:Hello,

Just thought I would mention that I had this error when test restoring one of our servers yesterday - was using php5 (latest win32 binaries)

I fixed a couple of errors in the php.ini file and include/config.php (one was just me using localhost rather than 127.0.0.1)

Though as per usual... - after changing these and reloading it sorted out my problem!

HTH

Lard
Do you have a list of the errors you had to fix? Maybe I can double-check my configuration against what you changed?

TIA!
joex51
Posts: 32
Joined: Sun Mar 05, 2006 4:05 am
Location: Connecticut

Post by joex51 »

Just thought I would mention that I had this error when test restoring one of our servers yesterday - was using php5 (latest win32 binaries)

I fixed a couple of errors in the php.ini file and include/config.php (one was just me using localhost rather than 127.0.0.1)

any way you could post the chaanges
caotic
Posts: 1
Joined: Tue Apr 04, 2006 11:25 pm
Location: Mexico
Contact:

Post by caotic »

You have all problems with modules, php doesnt have the module of mysql for that i think you have to copy some files from mysql to php, and add mysql path to the enviorment variable PATH
start>controlPanel>System>advance:edit enviorment variables just ad the path to mysql bin directory and dont forget to separate it from the other paths by ; i think you have to reboot after this.
This answer is not complete but im sure thats the reason for the problem

Basically php doent have the mysql functions by default you have to add the module for this to work
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest