
I am moving servers from a shared host with 1&1 to a dedicated server with 1&1. As part of this I am moving all my sites over including two that were built using mysql 4.0.27. The new server runs mysql 5.
I thought that migrating would be easy.
1. go into phpmyadmin on the old server and do a dump.
2. remove the "create database" line because I am importing into a database that plesk has already set up for me.
3. upload dump to new database in phpmyadmin.
Problem
I get an error which says that: 'Specified key was too long; max key length is 1000 bytes'.
I've had a look round on the internet and I think the problem is something to do with utf-8?
Has anybody had this problem before or know how I can fix it so that the data I import into the new server will import properly?
Here is the error in full:
Error
SQL query:
--
-- Dumping data for table `cms_module_search_words`
--
-- --------------------------------------------------------
--
-- Table structure for table `cms_module_templates`
--
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 said: Documentation
#1071 - Specified key was too long; max key length is 1000 bytes
help...