Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/03/2016, 11:43
NazCarLpa
 
Fecha de Ingreso: marzo-2009
Ubicación: España
Mensajes: 371
Antigüedad: 15 años
Puntos: 5
Problemas de migración

Buenas tardes a todos, estoy intentando migrar una bbdd de un servidor a otro y me canta este error en varias tablas a la hora de lanzar la consulta.

CONSULTA
Código MySQL:
Ver original
  1. CREATE TABLE `jie6t_categories` (
  2.   `id` int(11) NOT NULL,
  3.   `asset_id` int(10) UNSIGNED NOT NULL DEFAULT '0'COMMENT AS `FK to the #__assets table.`,
  4.   `parent_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  5.   `lft` int(11) NOT NULL DEFAULT '0',
  6.   `rgt` int(11) NOT NULL DEFAULT '0',
  7.   `level` int(10) UNSIGNED NOT NULL DEFAULT '0',
  8.   `path` varchar(255) NOT NULL DEFAULT '',
  9.   `extension` varchar(50) NOT NULL DEFAULT '',
  10.   `title` varchar(255) NOT NULL,
  11.   `alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  12.   `note` varchar(255) NOT NULL DEFAULT '',
  13.   `description` mediumtext,
  14.   `published` tinyint(1) NOT NULL DEFAULT '0',
  15.   `checked_out` int(11) UNSIGNED NOT NULL DEFAULT '0',
  16.   `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  17.   `access` int(10) UNSIGNED DEFAULT NULL,
  18.   `params` text NOT NULL,
  19.   `metadesc` varchar(1024) NOT NULL COMMENT 'The meta description for the page.',
  20.   `metakey` varchar(1024) NOT NULL COMMENT 'The meta keywords for the page.',
  21.   `metadata` varchar(2048) NOT NULL COMMENT 'JSON encoded metadata properties.',
  22.   `created_user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  23.   `created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  24.   `modified_user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  25.   `modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  26.   `hits` int(10) UNSIGNED NOT NULL DEFAULT '0',
  27.   `language` char(7) NOT NULL


ERROR
Cita:
#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 'AS `FK to the #__assets table.`,
`parent_id` int(10) UNSIGNED NOT NULL DEFAUL' at line 3

Podrían echárme una mano por favor.
Gracias, un saludo.

Última edición por gnzsoloyo; 09/03/2016 a las 11:49 Razón: Mal etiquetado de código. USAR LOS HIGHLIGHTS POR FAVOR: