Forums / Install & configuration / "No database connection could be made" after IP-address changed

"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';

eZ debug

Timing: Jan 31 2025 10:06:09
Script start
Timing: Jan 31 2025 10:06:09
Module start 'content'
Timing: Jan 31 2025 10:06:09
Module end 'content'
Timing: Jan 31 2025 10:06:09
Script end

Main resources:

Total runtime0.3101 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 589.7344180.7891
Module start 'content' 0.00870.0070 770.523494.0234
Module end 'content' 0.01570.2944 864.5469526.0781
Script end 0.3101  1,390.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.0213200.0002
Check MTime0.00130.4095200.0001
Mysql Total
Database connection0.00100.308210.0010
Mysqli_queries0.256982.84541410.0018
Looping result0.00140.44521390.0000
Template Total0.294094.810.2940
Template load0.00080.272710.0008
Template processing0.293294.528810.2932
Override
Cache load0.00060.177710.0006
Sytem overhead
Fetch class attribute can translate value0.00090.302110.0009
XML
Image XML parsing0.00020.074810.0002
General
dbfile0.01183.8033200.0006
String conversion0.00000.002230.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
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