Forums / Install & configuration / Database setup problem

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.

eZ debug

Timing: Jan 29 2025 14:42:55
Script start
Timing: Jan 29 2025 14:42:55
Module start 'content'
Timing: Jan 29 2025 14:42:55
Module end 'content'
Timing: Jan 29 2025 14:42:55
Script end

Main resources:

Total runtime0.1731 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.9453180.8359
Module start 'content' 0.00660.0068 768.781398.6172
Module end 'content' 0.01350.1596 867.3984526.7813
Script end 0.1730  1,394.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.8324200.0002
Check MTime0.00130.7414200.0001
Mysql Total
Database connection0.00090.512210.0009
Mysqli_queries0.128874.37481410.0009
Looping result0.00110.62681390.0000
Template Total0.159291.910.1592
Template load0.00080.462010.0008
Template processing0.158491.480510.1584
Override
Cache load0.00060.324610.0006
Sytem overhead
Fetch class attribute can translate value0.00060.359310.0006
XML
Image XML parsing0.00020.106310.0002
General
dbfile0.00834.7805200.0004
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs