Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/12/2011, 15:19
tavera10
 
Fecha de Ingreso: noviembre-2011
Mensajes: 11
Antigüedad: 14 años, 9 meses
Puntos: 0
Pregunta Que tiene de mal esta syntaxis?

Pues estoy intentando importar una base de datos via ssh, primero me dio un error en la linea 19 ya que decia algo de que la tabla `aairm_assets` ya existia asi que borre la linea 19. Luego me dio este error;
Código PHP:
ERROR 1064 (42000) at line 19: You have an error in your SQL syntax; check the m           anual that corresponds to your MySQL server version for the right syntax to use            near '`id` int(10) unsigned NOT NULL auto_increment COMMENT 'Clave primaria',
  `paren' 
at line 1 
Me podria explicar alguien que tiene de mal y como lo puedo arreglar?
De antemano, Gracias

Código PHP:
16-- Estructura de tabla para la tabla `aairm_assets`
17-- 
18
19CREATE TABLE 
`aairm_assets` (
20  `id` int(10) unsigned NOT NULL auto_increment COMMENT 'Clave primaria',
21  `parent_id` int(11) NOT NULL default '0' COMMENT 'Anidadas al conjunto 22padre.',
23  `lft` int(11) NOT NULL default '0' COMMENT 'Anidadas conjunto lft.',
24  `rgt` int(11) NOT NULL default '0' COMMENT 'Anidadas conjunto rgt.',
 
25 `level` int(10) unsigned NOT NULL COMMENT 'Nivel de la caché en el árbol 26anidado.',
27  `name` varchar(50) NOT NULL COMMENT 'Nombre único para el activo.\n',
28  `title` varchar(100) NOT NULL COMMENT 'Título descriptivo para el activo.',
29  `rules` varchar(5120) NOT NULL COMMENT 'Control de acceso codificado de 30JSON.',
31 PRIMARY KEY  (`id`),
32  UNIQUE KEY `idx_asset_name` (`name`),
33  KEY `idx_lft_rgt` (`lft`,`rgt`),
34  KEY `idx_parent_id` (`parent_id`)
35) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 36AUTO_INCREMENT=35 ;