Forums / Install & configuration / mysql Initialization failed

mysql Initialization failed

Author Message

zackwlg zackwlg

Thursday 19 June 2003 6:23:17 am

hi,
when i try to Initialize the Database i get this error message:

Initialization failed
The database could not be properly initialized.
Column 'contentobject_id' is used with UNIQUE or INDEX but is not defined as NOT NULL
MySQL Error #1121

my db contains data and i checkedĀ“"Continue but leave the data as it is.
" who can help me?

bye zack

Tony Wood

Thursday 19 June 2003 7:32:48 am

Zack,

did you do the initialisation by hand or via the install tool?

I am guessing you don't want any of the data in the db so if you can go to the DB drop the tables. Then run

mysql -uxxx -pxxx mydb < kernel/sql/mysql/kernel_clean.sql

This will create a clean db for you.

I hope this helps

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

zackwlg zackwlg

Thursday 19 June 2003 10:15:37 pm

i install by the install tool. no, i need the other tables in the db. i can`t drop them.

zack

zackwlg zackwlg

Sunday 22 June 2003 10:48:02 pm

is there no way to install the tables manually perhaps with a sql file?

zack

Tony Wood

Monday 23 June 2003 3:32:11 am

Hi,

This is what this does. It installs the tables manually

mysql -uxxx -pxxx mydb < kernel/sql/mysql/kernel_clean.sql

Give it a try, but remember to drop the tables beforehand to clear out data.

phpMyAdmin is good for this if you are not happy doing it from the command line.

tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

zackwlg zackwlg

Monday 23 June 2003 4:30:34 am

thanks but now i get this error message:

Error

SQL-Command :

INSERT INTO ezcontentclass( id, version, name, identifier, contentobject_name, creator_id, modifier_id, created, modified )
VALUES ( 1, 0, 'Folder', 'folder', '<name>' , - 1, 14, 1024392098, 1048494694 )

MySQL announces:

Table 'DB18384.ezcontentclass' doesn't exist

but my DB is called DB18384. i do not know where the error is.

zack

Paul Forsyth

Monday 23 June 2003 4:52:19 am

Try creating a new empty db and issuing the mysql command again. Sounds like there is content within the db already.

If you are getting errors when going through the setup try and skip that phase.

zackwlg zackwlg

Monday 23 June 2003 5:29:52 am

i can`t create an new empty db. i have only this db and it contains other tables, which i can`t drop. other applications use this db too. does ezp need a empty db?

eZ debug

Timing: Jan 18 2025 15:05:52
Script start
Timing: Jan 18 2025 15:05:52
Module start 'content'
Timing: Jan 18 2025 15:05:53
Module end 'content'
Timing: Jan 18 2025 15:05:53
Script end

Main resources:

Total runtime1.0964 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.8281180.8281
Module start 'content' 0.00610.9025 768.6563630.9219
Module end 'content' 0.90860.1878 1,399.5781341.0703
Script end 1.0964  1,740.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3702210.0002
Check MTime0.00140.1276210.0001
Mysql Total
Database connection0.00070.065810.0007
Mysqli_queries1.015092.57472110.0048
Looping result0.00210.18912090.0000
Template Total1.067097.320.5335
Template load0.00230.209220.0011
Template processing1.064697.101320.5323
Template load and register function0.00020.020810.0002
states
state_id_array0.00080.076410.0008
state_identifier_array0.00250.232420.0013
Override
Cache load0.00200.1842500.0000
Sytem overhead
Fetch class attribute can translate value0.00150.138640.0004
Fetch class attribute name0.00210.191490.0002
XML
Image XML parsing0.00140.131040.0004
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.00470.4307270.0002
String conversion0.00000.000530.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs