Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-26 20:50:00

dreamer
Member
Registered: 2007-06-08
Posts: 242

DAtabase Unavailable

Everynow and then, I’ll have some of my sites say that. Sometimes, it’s gone within a couple minutes of refreshing. Others tend to stay alot longer. What would be causing this and how to fix? Or prevent this from happening?

Last edited by dreamer (2011-01-26 20:55:53)

Offline

#2 2011-01-26 21:00:26

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: DAtabase Unavailable

Contact your hoster – 100% problem is with access to mysql database. If it’s shared hosting – is your site under big load? How many visitors you have?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#3 2011-01-26 21:03:19

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: DAtabase Unavailable

Nah- it’s a small business site. It is shared hosting. What do you mean by “access to mysql database” ? Thank you

Offline

#4 2011-01-26 21:10:59

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: DAtabase Unavailable

dreamer wrote:

What do you mean by “access to mysql database” ?

For some reason your mysql server isn’t responding to requests from Txp

Offline

#5 2011-01-26 21:12:01

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: DAtabase Unavailable

Txp needs a connection to the database. You might be getting the ‘database unavailable’ message because the database is overloaded with current connections, i.e. from other users on the same shared web host. The way to prevent it from happening is to find a web hosting configuration where the database isn’t overloaded. Usually that means spending a little more, but not necessarily a lot more.


Code is topiary

Offline

#6 2011-01-26 22:03:41

xtreme164
New Member
Registered: 2011-01-26
Posts: 3

Re: DAtabase Unavailable

thanks jsoo, i have the same problem with my hosting service!

Offline

#7 2011-01-26 22:40:23

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: DAtabase Unavailable

I used to have that problem. Changing hosts solved it.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#8 2012-11-01 17:19:34

sweed
New Member
From: southern Oregon
Registered: 2009-01-26
Posts: 5

Re: DAtabase Unavailable

I lived with this issue for a year or more. I finally broke down and contacted Network Solutions. Below is their response. Worked for me, hope this helps others…

Your issue can be resolved by customizing PHP settings on your hosting package. Default values for PHP can be modified by use of the “php.ini” file that can be created in the /cgi-bin. Modifications to the php.ini file are not supported by Network Solutions technical support. You may create or make changes to the “php.ini” file and upload it to your /cgi-bin folder, but any changes to the “php.ini” file that are detrimental to the server’s performance may result in a suspension of your hosting account.

Whenever changing (or removing) a custom php.ini, you need to remove the file /cgi-bin/.php/php.coalesced.ini. Failure to delete this file will mean that the previous settings are used until the server re-generates this file. Deleting it forces the server to re-generate it on the next PHP load.

An example php.ini:
register_globals = On
safe_mode = Off
memory_limit = 64M

The “example” above is all I did. Saved as php.ini and uploaded.

Offline

#9 2012-11-01 17:21:45

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: DAtabase Unavailable

Please, do not enable register_globals.

Offline

#10 2012-11-01 17:39:20

sweed
New Member
From: southern Oregon
Registered: 2009-01-26
Posts: 5

Re: DAtabase Unavailable

Ok, followed your advice and omitted the ‘register_globals’ line. The results still seem to be successful for the original problem.

Offline

Board footer

Powered by FluxBB