SQL problem

Author Message

Steph A

Thursday 17 March 2005 7:59:15 am

I am moving to a new provider. But I cant insert my existing database into the new one.

I get error code #1064 when trying with both phpadmin and MySQL administrator.

Can anyone help?

Łukasz Serwatka

Thursday 17 March 2005 10:12:18 pm

Hi,

What versions of MySQL do you use? If you move from 4.1.x to 4.0.xx use --compatible=mysql40 for mysqldump. This is parse error. You can try manualy fix this in dump file, of course if is small enought ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Steph A

Friday 18 March 2005 2:13:50 am

CREATE TABLE `ezapprove_items` (

`collaboration_id` int( 11 ) NOT NULL default '0',
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`workflow_process_id` int( 11 ) NOT NULL default '0',
PRIMARY KEY ( `id` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1 COLLATE = latin1_danish_ci AUTO_INCREMENT =1

This is the error I get. I also get a error when trying to use command "compatible=mysql40" in shell, errorcode #1064.

What is wrong?

Łukasz Serwatka

Monday 21 March 2005 5:09:15 am

Hi,

If you uses MySQL 4.1.x try

mysqldump --compatible=mysql40 --default-character-set=latin1 -u root -p database_name > dump.sql

Set your encoding for --default-character-set

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 03:28:52
Script start
Timing: Jan 31 2025 03:28:52
Module start 'layout'
Timing: Jan 31 2025 03:28:52
Module start 'content'
Timing: Jan 31 2025 03:28:52
Module end 'content'
Timing: Jan 31 2025 03:28:52
Script end

Main resources:

Total runtime0.0308 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1250151.2109
Module start 'layout' 0.00540.0033 739.3359220.6875
Module start 'content' 0.00870.0200 960.0234997.9141
Module end 'content' 0.02870.0021 1,957.937533.9922
Script end 0.0308  1,991.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00299.4629140.0002
Check MTime0.00113.4312140.0001
Mysql Total
Database connection0.00092.977510.0009
Mysqli_queries0.00237.453130.0008
Looping result0.00000.032510.0000
Template Total0.00144.510.0014
Template load0.00113.497010.0011
Template processing0.00030.964610.0003
Override
Cache load0.00072.338110.0007
General
dbfile0.00020.771180.0000
String conversion0.00000.020140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs