Forums / Install & configuration / Kernel (50), No DB Connection

Kernel (50), No DB Connection

Author Message

Emory Rowland

Monday 10 November 2003 11:12:04 am

I'm getting the kernel (50) No database connection could be made... error after trying to log in to admin. I've checked the site.ini database, username, and password to make sure they are correct. I'm using Ver 3.2-3 on a shared host with cpanel, Apache 1.3.29 and PHP 4.3.4. Advice appreciated much. Thanks, Emory

Willie Seabrook

Monday 10 November 2003 12:49:53 pm

Look at my post a few ones down from yours. It looks like we have the same problem. I have gone into more depth than you have here. Perhaps there is a bug in 3.2-3???

Regards,
Willie

Emory Rowland

Monday 10 November 2003 3:07:45 pm

Yes, it seems the same. The only thing you mentioned that I didn't check was the sock. I'm not sure about that.

steve p

Monday 10 November 2003 6:57:01 pm

I have the same problem . .it seems no matter what I try I can not connect to postresql.
I have tried the manual installation, the wizard .. and both of those numerous times and it's always the same thing. I am root on this server and I am setting up the dB and user properly (other cms/forum/phpsql apps work) .. why not this one?
ezpublish seems to be exactly what I want, and I can't run it!!!

Willie Seabrook

Tuesday 11 November 2003 9:00:28 pm

You may want to check your sockets:

Create a file info.php in your document root (the directory where ezpublish index.php is) and put in it:

<?php

phpinfo();

?>

Now load that up at http://localhost/info.php and scroll down to the mysql section.
What does the MYSQL_SOCKET parameter have in it?

It may have a value like /tmp/mysql.sock
Go to whatever directory it has (in this case /tmp/) and check to see there is a file there. If not, you need to find mysql.sock.

Its probably in /var/lib/mysql/mysql.sock or similar.

Then:
cd /tmp
ln /var/lib/mysql/mysql.sock mysql.sock or
ln -s /var/lib/mysql/mysql.sock mysql.sock

to create a symbolic link to whereever your sock is. This is probably similar process with postgresql.

Let me know how you get on.

steve p

Wednesday 12 November 2003 4:45:14 pm

I'm using postgresql, here is the printout from phpinfo:

PostgreSQL Support enabled
Active Persistent Links 0
Active Links 0

Directive Local Value Master Value
pgsql.allow_persistent
On On
pgsql.max_links
Unlimited Unlimited
pgsql.max_persistent
Unlimited Unlimited

Like I said, I can connect from other php/sql apps, just not from ezpublish.

I have done it both ways, editing the .ini file and using the wizard. Setting up different accounts, root account (postgresql) .. .nothing seems to work.

eZ debug

Timing: Jan 20 2025 00:26:53
Script start
Timing: Jan 20 2025 00:26:53
Module start 'content'
Timing: Jan 20 2025 00:26:54
Module end 'content'
Timing: Jan 20 2025 00:26:54
Script end

Main resources:

Total runtime0.6609 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0547180.8281
Module start 'content' 0.00480.5502 769.8828546.4375
Module end 'content' 0.55510.1058 1,316.3203337.8125
Script end 0.6608  1,654.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5767210.0002
Check MTime0.00140.2096210.0001
Mysql Total
Database connection0.00070.104710.0007
Mysqli_queries0.591889.53832050.0029
Looping result0.00180.27432030.0000
Template Total0.634996.120.3175
Template load0.00160.237320.0008
Template processing0.633495.835720.3167
Template load and register function0.00010.020610.0001
states
state_id_array0.00140.218810.0014
state_identifier_array0.00080.124220.0004
Override
Cache load0.00130.2014450.0000
Sytem overhead
Fetch class attribute can translate value0.00150.229240.0004
Fetch class attribute name0.00100.158160.0002
XML
Image XML parsing0.00080.115940.0002
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00460.6906210.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs