Hard to install on virtual web host

Author Message

ma zi

Sunday 15 February 2004 8:12:29 am

On many virtual web hosts,I can't use username and passwor to chose my database,I can only use username,password and database name to connect it.How can I install the ezpublish?

Jan Borsodi

Tuesday 02 March 2004 7:30:39 am

Do you mean you can only connect to a specific database on the database server?

What kind of database server are you connecting to (MySQL or PostgreSQL)?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

ma zi

Wednesday 10 March 2004 3:03:31 am

Yes.
Mysql

Joakim Stai

Tuesday 16 March 2004 3:43:56 am

I think I have the same problem.
When I enter the username and password for my mySQL account on my webhost's server and press Next in the Setup wizard I get this error:

"The selected selected user has not got access to any databases. Change user or create a database for the user."

But when I attempt to log into the database in my own php script, it works perfectly.. with same username and password. Does eZ publish require some special database priveleges to be able to work? Please help..

See for yourself..
http://www.haugetun.fhs.no/ezpublish/index.php
Username: haugetunfhsno
Password: publish (temporary password for mySQL only)

Kåre Køhler Høvik

Tuesday 16 March 2004 3:58:42 am

Could you please try this patch, and tell us if it works.

--- lib/ezdb/classes/ezmysqldb.php      (revision 5508)
+++ lib/ezdb/classes/ezmysqldb.php      (working copy)
@@ -624,6 +624,11 @@
         $databases = array();
         $i = 0;
         $numRows = mysql_num_rows( $databaseArray );
+        if ( count( $numRows ) == 0 )
+        {
+            return false;
+        }
+
         while ( $i < $numRows )
         {
             $databases[] = mysql_db_name($databaseArray, $i);

( insert the lines after + into lib/ezdb/classes/ezmysqldb.php at line ca 627 )

--
Kåre Høvik

Kåre Høvik

Joakim Stai

Tuesday 16 March 2004 5:33:41 am

I tried your patch, and it didn't work on eZp 3.3-1. See my last post here:
http://www.ez.no/community/forum/install_configuration/any_trick_to_force_the_assistant_to_accept_an_existing_database_

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 01:22:50
Script start
Timing: Jan 19 2025 01:22:50
Module start 'layout'
Timing: Jan 19 2025 01:22:50
Module start 'content'
Timing: Jan 19 2025 01:22:51
Module end 'content'
Timing: Jan 19 2025 01:22:51
Script end

Main resources:

Total runtime0.7799 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.2813152.6406
Module start 'layout' 0.00590.0038 741.921939.4766
Module start 'content' 0.00970.7687 781.3984640.7188
Module end 'content' 0.77840.0015 1,422.117216.1406
Script end 0.7799  1,438.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4318160.0002
Check MTime0.00140.1749160.0001
Mysql Total
Database connection0.00080.105410.0008
Mysqli_queries0.719692.2693700.0103
Looping result0.00080.1049680.0000
Template Total0.748195.920.3741
Template load0.00230.296820.0012
Template processing0.745895.627820.3729
Template load and register function0.00020.025810.0002
states
state_id_array0.00090.120010.0009
state_identifier_array0.00100.127120.0005
Override
Cache load0.00190.2485300.0001
Sytem overhead
Fetch class attribute can translate value0.00070.092540.0002
Fetch class attribute name0.00150.196180.0002
XML
Image XML parsing0.00160.210840.0004
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00090.1143220.0000
String conversion0.00000.001340.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs