Page 1 of 1

Database didn't transfer one table

Posted: Sun Sep 28, 2008 5:58 pm
by musashi39
Error in Query:

CREATE TABLE `cms_module_templates` ( `module_name` varchar(200) default NULL, `template_name` varchar(200) default NULL, `content` text, `create_date` datetime default NULL, `modified_date` datetime default NULL, KEY `module_name` (`module_name`,`template_name`) ) TYPE=MyISAM;
MySQL says:

Couldn't create table: cms_module_templates

I just recently switched servers and I've tried backing up and restoring with myphpadmin and with mysqldumber. they both give me this message. I was thinking that maybe I could manually enter the table???? But I don't know how to do this and my php admin says it's not such a good idea. The site is down :(

Re: Database didn't transfer one table

Posted: Mon Sep 29, 2008 6:21 pm
by Pierre M.
Please inform at least with System Info, old hosting context and new hosting context, steps/how to reproduce. Otherwise nobody can guess the combinaison you are facing.

BTW, I don't know mysqldumber.

Pierre M.

Re: Database didn't transfer one table

Posted: Thu Oct 02, 2008 11:25 pm
by HMTKSteve
Change the VARCHAR entries from 200 to 150 and it will work.

Re: Database didn't transfer one table

Posted: Fri Oct 03, 2008 10:16 am
by blast2007
HMTKSteve wrote: Change the VARCHAR entries from 200 to 150 and it will work.
Thanks HMTKSteve.

@Pierre M.
This is a FAQ, asked many and many and manytimes.
Do you think it should be added to the official FAQ, or instead we could ask developers to reduce varchar size in the core to prevent these errors while transfering db?

regards
blast

Re: Database didn't transfer one table

Posted: Fri Oct 03, 2008 10:37 am
by alby
blast2007 wrote: Do you think it should be added to the official FAQ, or instead we could ask developers to reduce varchar size in the core to prevent these errors while transfering db?
In 1.5 will be 165  :)

Alby

Re: Database didn't transfer one table

Posted: Fri Oct 03, 2008 4:16 pm
by Pierre M.
The wiki (hence the FAQ) is open to all for improvements.

Pierre M.