MySQL on a different server?

Author Message

Mark Marsiglio

Thursday 30 October 2003 6:49:29 pm

Is it possible to locate the MySQL database on a different server than the Apache/PHP/eZ publish installation? The hosting provider on our project would like to keep the MySQL database on a server behind the firewall with only the 3306 port open.

The main server (windows 2000 or 2003 server) would run the Apache and need to connect to the database remotely.

It seems that this would be possible by modifying the [Database Settings] in the site.ini.append to point the server to a remote IP address instead of localhost, but has anyone tried this to confirm that it works?

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Tore Skobba

Friday 31 October 2003 7:04:08 am

Hi

Yes I have done that. I work on one site commited into CVS. However, because more people might work on it in the future I have a centralised database all checked out sites are conneting to. Works fine. However, remember to add your username with the IP to the Mysql user tables (i.e. root connecting from other than localhost need another entry).

Typically change server from localhost to IP. However, I am using the standard port. So you might have to write IP adress:3306

Cheers.

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 31 2025 08:08:16
Script start
Timing: Jan 31 2025 08:08:16
Module start 'layout'
Timing: Jan 31 2025 08:08:16
Module start 'content'
Timing: Jan 31 2025 08:08:17
Module end 'content'
Timing: Jan 31 2025 08:08:17
Script end

Main resources:

Total runtime0.8965 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.2500151.2266
Module start 'layout' 0.00510.0029 739.476636.6797
Module start 'content' 0.00800.8876 776.1563916.6016
Module end 'content' 0.89560.0009 1,692.75787.8359
Script end 0.8965  1,700.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3381160.0002
Check MTime0.00130.1415160.0001
Mysql Total
Database connection0.00070.079810.0007
Mysqli_queries0.846994.4724540.0157
Looping result0.00060.0654520.0000
Template Total0.860296.020.4301
Template load0.00210.236820.0011
Template processing0.858195.719820.4291
Template load and register function0.00130.142210.0013
states
state_id_array0.00110.121510.0011
state_identifier_array0.00140.152720.0007
Override
Cache load0.00170.1921120.0001
Sytem overhead
Fetch class attribute can translate value0.00040.049920.0002
Fetch class attribute name0.00210.230930.0007
XML
Image XML parsing0.00060.061820.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00430.4822150.0003
String conversion0.00000.000740.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs