Forums / Install & configuration / could'n connect to database

could'n connect to database

Author Message

claudio demarinis

Wednesday 07 May 2003 3:37:53 pm

i have now this error with the manuall installation

kernel (50)

* No database connection could be made, the system might not behave properly

The url is www.risorseweb.net : help me

Tony Wood

Wednesday 07 May 2003 4:16:36 pm

A couple of things to try.

1. Ensure MySQL is running
2. The socket is correct, it could be 3306 or 3400
3. Check the database name
4. Check the userid for the table
5. Check the password

Its normally one of those. At least for me anyway.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

HK Lam

Wednesday 07 May 2003 10:18:43 pm

how about the /settings/site.ini

[Database Settings]
# Use either ezmysql or ezpostgresql
Database Implementation=ezpostgresql
# Name of server to connect to
Server=localhost
# DB user name
User=<user>
# DB Password
Password=<password>
# database name you have created in the previous step
Database=<name_of_database>

claudio demarinis

Wednesday 07 May 2003 10:50:07 pm

where i control the socket? The site.ini settings are correct

claudio demarinis

Thursday 08 May 2003 12:04:01 am

in the site.in there this row:
Databasepluginpath

How should i edit this?

Tony Wood

Thursday 08 May 2003 12:24:48 am

A quick way to get a site going that has stopped like this is to backup all your settings files.

GNU/Linux: tar cvzf settings.tgz settings
Windows: Zip -a settings.zip settings

and then change the site.ini file in settings/site.ini or if you have one site.ini.php making CheckValidity true.

[SiteAccessSettings]
CheckValidity=true

This will check your system out, file permissions, database connection etc... Really handy.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Thursday 08 May 2003 12:26:03 am

For your sockets, thats a MySQL issue, it is controlled via the /etc/my.cnf

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

eZ debug

Timing: Jan 30 2025 21:42:03
Script start
Timing: Jan 30 2025 21:42:03
Module start 'content'
Timing: Jan 30 2025 21:42:03
Module end 'content'
Timing: Jan 30 2025 21:42:03
Script end

Main resources:

Total runtime0.0240 sec
Peak memory usage6,144.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 588.2500370.2891
Module start 'content' 0.00840.0117 958.53911,009.5625
Module end 'content' 0.02020.0038 1,968.101678.7031
Script end 0.0239  2,046.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.3393120.0002
Check MTime0.00104.3335120.0001
Mysql Total
Database connection0.00093.711210.0009
Mysqli_queries0.002912.038240.0007
Looping result0.00000.075620.0000
Template Total0.003313.810.0033
Template load0.00083.477610.0008
Template processing0.002510.345210.0025
Override
Cache load0.00062.409810.0006
General
dbfile0.00031.2149100.0000
String conversion0.00000.032830.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs