Shared Hosting - Datasource Configuration

Author Message

Ashish Gupta

Thursday 29 September 2005 3:36:01 pm

In a shared-hosting environment, where I do not have consle access to the server

How Do I
- Put my database connection string (which includes a MYSQ DB name/password pair)

- Do I get to configure server.xml( Tomcat), if not then is there an alternative where I can use Tomcat Data Source/Connection Pooling?

I am considering shared hosting ( using JSP/Tomcat.MYSQL)and I dont know how I will be able to host it, if I use connection polling, As on standalone I have complete control over Server.xml file

Thanks a lot.

Ɓukasz Serwatka

Friday 30 September 2005 1:37:01 am

Ashish, you did not provide information which language/technology you use. If Java, then read doc about working with databases. You should have driver for MySQL, JDBC for example:

Connection string can look:
con = DriverManager.getConnection("jdbc:mysql:///test", "root", "secret");

If PHP, than should works with mysql_connect function. Check manual for PHP. However Tomcat as web server for eZ publish is not supported.

And, your question is not related to eZ publish, and supported by eZp technology.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 20 2025 08:46:57
Script start
Timing: Jan 20 2025 08:46:57
Module start 'layout'
Timing: Jan 20 2025 08:46:57
Module start 'content'
Timing: Jan 20 2025 08:46:57
Module end 'content'
Timing: Jan 20 2025 08:46:57
Script end

Main resources:

Total runtime0.0164 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.2969152.6406
Module start 'layout' 0.00580.0035 741.937539.4766
Module start 'content' 0.00930.0049 781.414189.3984
Module end 'content' 0.01410.0023 870.812530.3047
Script end 0.0164  901.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.8561140.0002
Check MTime0.00127.0443140.0001
Mysql Total
Database connection0.00106.165010.0010
Mysqli_queries0.003219.230730.0011
Looping result0.00000.145110.0000
Template Total0.001810.910.0018
Template load0.00095.441010.0009
Template processing0.00095.465710.0009
Override
Cache load0.00063.833410.0006
General
dbfile0.00031.678780.0000
String conversion0.00000.060940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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