i'm trying to generate a dump from my database but when i try to load the dump file it gives me an error. What should i do ? My MySQL ( loader) version is mysql "Ver 14.14 Distrib 5.1.57, for apple-darwin10.3.0 (i386) using readline 5.1" my MySQL(dumper) version is "mysqldump Ver 10.11 Distrib 5.0.51a, for debian-linux-gnu (x86_64)".
The error is:
ERROR 1166 (42000) at line 1572: Incorrect column name 'DATEDIFF(current_date,DATE_ADD(created_at,INTERVAL (updated_at*30) DAY))'
head file:
$ head dump.sql
> -- MySQL dump 10.13 Distrib 5.1.34, for apple-darwin9.5.0 (i386)
> --
> -- Host: localhost Database: moov3_production
> -- ------------------------------------------------------
> -- Server version 5.0.51a-24+lenny2
mysql
, and possibly more of your dump file. Does this fail immediately or does it do some work first? On which table is this failing?CREATE TABLE
statement from the file for the table it is trying to insert into. If that line is very long, it might help to re-do the dump with--skip-extended-insert
.