Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 1999
Posts: 11
User
User
Offline
Joined: Sep 1999
Posts: 11
I had it all up and running. Then I had to shift it to a new server (the old one is going to a museum :-)) and all went well until this error pops up:

Fatal error: Call to undefined function: mysql_pconnect() in /home/sites/home/web/php/wwwforum/mysql.inc.php on line 26

Here is a snip from my php.ini:
[MySQL]
mysql.allow_persistent = On ; allow or prevent persistent link
mysql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
mysql.default_port = ; default port number for mysql_connect(). If unset,
; mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
; entry in /etc/services, or the compile-time defined MYSQL_PORT
; (in that order). Win32 will only look at MYSQL_PORT.
mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode)
mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode)
mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode)
; Note that this is generally a *bad* idea to store passwords
; in this file. *Any* user with PHP access can run
; 'echo cfg_get_var("mysql.default_password")' and reveal that
; password! And of course, any users with read access to this
; file will be able to reveal the password as well.


Anybody who can help me - Please!


Erik Gravgaard<br />iPares Denmark A/S<br />+45 39 40 17 17
Sponsored Links
Joined: Sep 1999
Posts: 11
User
User
Offline
Joined: Sep 1999
Posts: 11
Isn't it just great when you end up finding the solution yourself? :-)

I had just changed the php.ini by adding this( 'extension=mysql.so' )
to php.ini, but I hadn't reloaded Apache, so a little killall -HUP httpd did the trick.


Erik Gravgaard<br />iPares Denmark A/S<br />+45 39 40 17 17

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)