"No database connection could be made" after IP-address changed

Author Message

Maarten Holland

Wednesday 04 February 2004 10:41:29 am

Recently the IP-address of my server changed. Most DNS-servers have not yet picked up the new addresss.

After this change, it seems eZ can't connect to the database. Does anyone know if there are configurationfiles that I must change to my new address?

Thanks in advance,

Maarten

Marco Zinn

Wednesday 04 February 2004 11:06:12 am

Hm, strange.
Is your database on the same server as the webserver? If so, which got a new IP-Adress?

I think, the IP-Adress of the (web)server is not stored somewhere. But of course, the webserver needs a connection to your DB server. If this is on a different server (not "localhost"), then this may cause the problem.
If so, check the site.ini override files (.append) for "DatabaseSettings".

Marco
http://www.hyperroad-design.com

Maarten Holland

Wednesday 04 February 2004 1:19:45 pm

Thank you for your reply. eZ and the database are on the same server. Databasesettings seem OK. Perhaps I need to check my db-permissions from MySQL. I've changed the rights for the relevant user from 'localhost' to 'hosts: any'. I don't think that should be a problem, but you never know. Any other suggestions are welcome.

Vidar Langseid

Wednesday 11 February 2004 2:16:11 am

Since you are running the database on the same server you should have this in the correspondig site.ini (in settings/override/site.ini.append or settings/siteaccess/FOOBAR/site.ini.append)
[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
Database=ezp_db
User=ezp_usr
Password=ezp_pas

(you have to substitute ezp_db, ezp_usr and ezp_pas with your login information of course)

Then grant the correct persmissions by applying this command in the mysql client:
mysql> grant all privileges on ezp_db.* to ezp_usr@localhost identified by 'ezp_pas';

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 07:26:42
Script start
Timing: Jan 19 2025 07:26:42
Module start 'layout'
Timing: Jan 19 2025 07:26:42
Module start 'content'
Timing: Jan 19 2025 07:26:43
Module end 'content'
Timing: Jan 19 2025 07:26:43
Script end

Main resources:

Total runtime0.9099 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.6406152.6875
Module start 'layout' 0.00450.0031 742.328139.5234
Module start 'content' 0.00760.9009 781.8516577.4453
Module end 'content' 0.90850.0014 1,359.296912.3906
Script end 0.9099  1,371.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3218160.0002
Check MTime0.00120.1353160.0001
Mysql Total
Database connection0.00060.062910.0006
Mysqli_queries0.857994.2764620.0138
Looping result0.00090.0967600.0000
Template Total0.875196.220.4376
Template load0.00210.229320.0010
Template processing0.873095.943420.4365
Template load and register function0.00020.025510.0002
states
state_id_array0.00260.280510.0026
state_identifier_array0.00140.157920.0007
Override
Cache load0.00180.1943260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.085330.0003
Fetch class attribute name0.00130.147650.0003
XML
Image XML parsing0.00090.095330.0003
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00080.0928160.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs