Installation problem with charater set of the db

Author Message

christian bencivenni

Wednesday 10 January 2007 3:01:47 am

Hi to you all.
I recently download the latest installation of eZ 3.9. I didn't find the packages for this version so I use the 3.8 ones.Then I activated a hosted domain space on a Linux server but I have a problem.
During installation I receive this message:

"Warning
The database [heroneti47858] cannot be used, the setup wizard wants to create the site in [utf-8] but the database has been created using character set [iso-8859-1]. You will have to choose a database having support for [utf-8] or modify [heroneti47858] ."

I read other posts where users resolve the probleme simply changing the character and collation set, but I have a problem too.
I'm on a hosting server so don't have a direct control on the server configuration file.
I can use a simply, web based phpmyadmin form where I can read that my char set is: UTF-8 Unicode (utf), and the collation is: utf8_general_ci.

My doubt are:

1)why eZ ask me a "database having support for [utf-8]" if I have a utf-8 database?
2)can I choose another compatible collation? (I set Italian language by default)?
or
3) How can I resolve the problem?

Thanks.

Christian

zurgutt -

Wednesday 10 January 2007 8:43:08 am

Hi

Either set utf8 as default charset for databases in mysql conf or create the database in utf8:

CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_bin

This is a very common problem. I think explanation and solution should be offered by wizard, not a cryptic error message.

EDIT: skimmed over your question too quickly, i see now that maybe your hosting doesnt permit remaking database.. but generally making it as above should be solution.

Certified eZ developer looking for projects.
zurgutt at gg.ee

christian bencivenni

Wednesday 10 January 2007 10:38:34 pm

Thank you.
I resolved a problem... only to find another one on my way.
I change the db through a php script. This one:

mysql_connect($SERVER,$USER,$PASSWORD);
mysql_selectdb($DATABASE);
$QUERY = mysql_query("ALTER DATABASE $DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci");

Now phpmyadmin say that the charset and collation are correct but the warning still remain.
I think that the problem is in the words: "<i>the database has been created using character set [iso-8859-1]</i>".
How can I change a db, even with php language, with correct rights?

christian bencivenni

Wednesday 10 January 2007 11:29:42 pm

I also try with:

mysql_connect($SERVER,$USER,$PASSWORD); 
mysql_selectdb($DATABASE);  
$QUERY = mysql_query("ALTER DATABASE $DATABASE DEFAULT CHARACTER SET utf8 COLLATE utf8_bin");

but without success.

No one can help me?
Can it be a 3.9 installation problem?

christian bencivenni

Friday 12 January 2007 4:45:35 am

Other info.
I try with ez 3.8 and it doesn't work so I think it's a problem of server configuration or setting.
I don't have enogh permission to change or even read them so...

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 00:24:54
Script start
Timing: Jan 19 2025 00:24:54
Module start 'layout'
Timing: Jan 19 2025 00:24:54
Module start 'content'
Timing: Jan 19 2025 00:24:55
Module end 'content'
Timing: Jan 19 2025 00:24:55
Script end

Main resources:

Total runtime1.4034 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.1641152.6563
Module start 'layout' 0.00770.0029 740.820339.5078
Module start 'content' 0.01051.3912 780.3281565.8984
Module end 'content' 1.40170.0017 1,346.226612.1094
Script end 1.4034  1,358.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2943160.0003
Check MTime0.00150.1072160.0001
Mysql Total
Database connection0.00100.068410.0010
Mysqli_queries1.341395.5756630.0213
Looping result0.00070.0476610.0000
Template Total1.363197.120.6816
Template load0.00300.216620.0015
Template processing1.360196.910220.6800
Template load and register function0.00050.036410.0005
states
state_id_array0.00140.099210.0014
state_identifier_array0.00210.152820.0011
Override
Cache load0.00270.1938430.0001
Sytem overhead
Fetch class attribute can translate value0.00070.050220.0004
Fetch class attribute name0.00450.322660.0008
XML
Image XML parsing0.00090.062820.0004
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00190.1384170.0001
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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/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
2content/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: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs