UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > MySQL Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-12-2007, 18:16
new member
 
Join Date: Dec 2007
Posts: 1
Default mysql_pconnect() has been disabled

Hello all,
Having a bit of a problem in connecting to a mysql database that I have created in the cPanel for my web page:


DB Error: connect failed [nativecode=mysql_pconnect() has been disabled for security reasons] ** Array


Does anyone know how I re-enable this?

Cheers,
Donal
Reply With Quote
  #2 (permalink)  
Old 31-12-2007, 18:21
WelshTom's Avatar
Moderator
 
Join Date: May 2007
Location: Newport, Wales
Posts: 786
Send a message via AIM to WelshTom Send a message via MSN to WelshTom Send a message via Yahoo to WelshTom
Default

Hello.

Due to the security rules which are currently on the server, mysql_pconnect has been disabled.

You can however use mysql_connect, which'll work fine.
__________________
Thomas Williams
Founder of TWR Web Design
http://www.twrwebdesign.co.uk/
Reply With Quote
  #3 (permalink)  
Old 11-02-2008, 09:58
new member
 
Join Date: Feb 2008
Location: Walls
Posts: 6
Default

mysql_pconnect give always trouble because of using persistant connection and what usually happen is error and it is better to disable it:
Code:
Warning: Too many connections in /usr/www/users/xxxxx/includes/phpconfig.php on line 4

Warning: MySQL Connection Failed: Too many connections in /usr/www/users/xxxxx/includes/phpconfig.php on line 4
It is because of max_user_connection variable int MySql that is always limited to save resource of server.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:45.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

knowledgebase articles

popular blog categories