Database setup problem

Author Message

Jackson Hartsfield

Wednesday 01 September 2010 11:24:52 am

Well you guys were great in solving my last question/problem but now I have another one...

I created my MySQL database on 1and1.com which consist of clicking "New Database" and giving it a name.

I got to the point of "Site access configuration" then the next page is "Site Details" When I click next on this page it gives me this error:

Warning

 

The database [db339530096] 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 [db339530096] .(I also put up a screenshot at http://jacksonhartsfield.com/dbproblem.jpg )

I once again called 1and1.com and they said it was a MySQL database in the utf-8 format.

Thanks in advance for any help and suggestions.

Jackson

Jackson Hartsfield

Wednesday 01 September 2010 12:08:24 pm

Well I may have solved this myself.

I point the EZ setup to another database that I had created but never used as well as just chose the "Plain" site and this time it went through. I dont know what the difference is but it appears to be working now.

Jackson

Jackson Hartsfield

Wednesday 01 September 2010 2:34:44 pm

Grrr....

Ok, things werent working exactly right so I wiped the files and re-uploaded them and now I am back to my error in the original post.

Any suggestions??

Thanks,

Jackson

Jérôme Vieilledent

Wednesday 01 September 2010 11:27:53 pm

Hi Jackson

Your database really needs to be created in UTF-8 charset. You must create it before launching eZ Publish setup wizard :

CREATE DATABASE `mydatabase` DEFAULT CHARACTER SET `utf8`;

If you already created your database in Latin1 charset for example, you will need to change the charset :

ALTER DATABASE `mydatabase` DEFAULT CHARACTER SET `utf8`

Russell Michell

Monday 13 September 2010 1:43:57 pm

"

Hi Jackson

Your database really needs to be created in UTF-8 charset. You must create it before launching eZ Publish setup wizard :

CREATE DATABASE `mydatabase` DEFAULT CHARACTER SET `utf8`;

If you already created your database in Latin1 charset for example, you will need to change the charset :

ALTER DATABASE `mydatabase` DEFAULT CHARACTER SET `utf8`
"

Jackson,

Jérôme is right but I think your problem might be that you do not have shell (direct) access to alter your database configuration - is that right? This is generally the case with many webhosts and is done for security reasons. However, most webhosts with MySQL will also have a GUI management tool like phpMyAdmin for example.

Uisng phpMyAdmin you are able to run the necessry SQL commands as Jérôme describes either by pasting them into a text-field or by pointing and clicking.

There are many, many phpMyAdmin tutorials and how-to's out there so check first that you have it installed on your host, and then go looking for how to convert/create a DB in it with UTF-8 encoding.

Good luck
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Audun Wilhelmsen

Friday 22 October 2010 12:06:18 pm

I had the same problem, and the actual problem was that the database user I created didn't have enough privileges to the database (I think I used the query specified in the documentation, so perhaps this is something that should be checked out).

To anyone else Googling this question I suggest trying with a root database user and see if that works.

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

Main resources:

Total runtime0.9300 sec
Peak memory usage8,192.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.1328151.2109
Module start 'layout' 0.00420.0040 739.3438220.7031
Module start 'content' 0.00820.9210 960.04694,567.0000
Module end 'content' 0.92920.0007 5,527.046915.8594
Script end 0.9299  5,542.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3589160.0002
Check MTime0.00120.1304160.0001
Mysql Total
Database connection0.00060.059810.0006
Mysqli_queries0.820388.2083700.0117
Looping result0.00080.0878680.0000
Template Total0.880694.720.4403
Template load0.00230.250620.0012
Template processing0.878294.436720.4391
Template load and register function0.00140.150210.0014
states
state_id_array0.00100.102610.0010
state_identifier_array0.00070.070820.0003
Override
Cache load0.00210.2249480.0000
Sytem overhead
Fetch class attribute can translate value0.00190.201740.0005
Fetch class attribute name0.00290.306580.0004
XML
Image XML parsing0.00480.512940.0012
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00430.4653230.0002
String conversion0.00000.000540.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
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/header.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/header.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 10

Time used to render debug report: 0.0001 secs