Probleme bei Wechsel von MySQL 4 auf MySQL 5
Posted: Fri Nov 15, 2013 1:52 pm
Hi,
ich dachte mir, es könnte mal nicht schaden, die Datenbank meines Blogs auf MySQL 5 zu wechseln. Das Blog läuft aktuell mit S9Y 1.7.3, PHP 5.4.9 und eben MySQL 4.1.22. Für den DB-Export und -Import habe ich mich am S9Y Handbuch S. 450 - 456 orientiert. Nach dem ersten Import in eine neu angelegte MySQL 5.5.28 DB kam folgende Meldung:
Thx
Kai
ich dachte mir, es könnte mal nicht schaden, die Datenbank meines Blogs auf MySQL 5 zu wechseln. Das Blog läuft aktuell mit S9Y 1.7.3, PHP 5.4.9 und eben MySQL 4.1.22. Für den DB-Export und -Import habe ich mich am S9Y Handbuch S. 450 - 456 orientiert. Nach dem ersten Import in eine neu angelegte MySQL 5.5.28 DB kam folgende Meldung:
Dann habe ich irgendwo gelesen, dass es nicht mehr TYPE, sondern ENGINE heißt. Nach entsprechender Änderung der Inhalte im vi und dem nächsten Import (1x mit MYSQL4 Kompatibilitätsmodus und 1x mit NONE) kam diese Meldung und von den 29 Tabellen waren 16 importiert worden:Error
SQL query:
--
-- Database: `db_alt`
--
-- --------------------------------------------------------
--
-- Table structure for table `s_access`
--
CREATE TABLE IF NOT EXISTS `s_access` (
`groupid` int( 10 ) unsigned NOT NULL default '0',
`artifact_id` int( 10 ) unsigned NOT NULL default '0',
`artifact_type` varchar( 64 ) NOT NULL default '',
`artifact_mode` varchar( 64 ) NOT NULL default '',
`artifact_index` varchar( 64 ) NOT NULL default '',
KEY `accessgroup_idx` ( `groupid` ) ,
KEY `accessgroupT_idx` ( `artifact_id` , `artifact_type` , `artifact_mode` ) ,
KEY `accessforeign_idx` ( `artifact_id` )
) TYPE = MYISAM ;
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 10
Wäre nett, wenn mir jemand mitteilen könnte, was ich besser machen könnte oder was ich nun zu tun habe.Error
SQL query:
-- --------------------------------------------------------
--
-- Table structure for table `s_permalinks`
--
CREATE TABLE IF NOT EXISTS `s_permalinks` (
`permalink` varchar( 255 ) NOT NULL default '',
`entry_id` int( 10 ) unsigned NOT NULL default '0',
`type` varchar( 200 ) NOT NULL default '',
`data` text,
KEY `pl_idx` ( `permalink` ) ,
KEY `ple_idx` ( `entry_id` ) ,
KEY `plt_idx` ( `type` ) ,
KEY `plcomb_idx` ( `permalink` , `type` )
) ENGINE = MYISAM ;
MySQL said: Documentation
#1071 - Specified key was too long; max key length is 1000 bytes
Thx
Kai