Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/03/2008, 11:48
sk1one
 
Fecha de Ingreso: diciembre-2007
Mensajes: 149
Antigüedad: 16 años, 4 meses
Puntos: 1
Ayuda esto es extraño.

Creo las tablas con :

DROP TABLE IF EXISTS `categorias`;
CREATE TABLE `categorias` (
id_categoria int (11) NOT NULL auto_increment,
titulo varchar (64) NOT NULL,
descripcion text NOT NULL default '',
PRIMARY KEY(`id_categoria`)
)ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;

DROP TABLE IF EXISTS `subcategorias`;
CREATE TABLE `subcategorias` (
id_subcategoria int (11) NOT NULL auto_increment,
id_categoria int (11),
titulo varchar (64) NOT NULL,
titulo_categoria varchar (64) NOT NULL,
descripcion text NOT NULL,
PRIMARY KEY (`id_subcategoria`),
FOREIGN KEY (`id_categoria`) REFERENCES `categorias`(`id_categoria`) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;


DROP TABLE IF EXISTS `banner`;
CREATE TABLE `banner` (
idbanner int (11) NOT NULL auto_increment,
anunciante varchar (100) default NULL,
banner varchar (100) default NULL,
url varchar (255) default NULL,
hits int (11) unsigned default NULL,
orden int (11) NOT NULL default '999',
estado tinyint (3) unsigned default '0',
PRIMARY KEY(`idbanner`)
)ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;

DROP TABLE IF EXISTS `clientes`;
CREATE TABLE `clientes` (
id_cliente int (11) NOT NULL auto_increment,
empresa varchar (64) NOT NULL,
cif varchar (9) NOT NULL,
nombre varchar (64) NOT NULL,
apellido_1 varchar (64) NOT NULL,
apellido_2 varchar (64) NOT NULL,
razon_social char (32) NOT NULL,
direccion varchar (32) NOT NULL,
cp int (9) unsigned NOT NULL,
localidad varchar (32) NOT NULL,
provincia varchar (32) NOT NULL,
telefono int (32) NOT NULL,
web varchar (255) default NULL,
email varchar (50) NOT NULL,
modalidad char (30) NOT NULL,
duracion int (12) NOT NULL,
fecha date NOT NULL,
forma_de_pago varchar (50) default NULL,
precio_edicion int (11) unsigned default NULL,
iva int (11) unsigned default '0',
importe_total int (32) unsigned default '0',
banco int (32) default NULL,
sucursal int (32) default NULL,
dc int (2) default NULL,
cc int (32) default NULL,
estado tinyint (3) unsigned default '0',
PRIMARY KEY(`id_cliente`)
)ENGINE=InnoDB CHARSET=latin1 AUTO_INCREMENT=0 ;

DROP TABLE IF EXISTS `eventos`;
CREATE TABLE `eventos` (
id_evento int (11) NOT NULL auto_increment,
id_cliente int (11),
id_subcategoria int (11),
titulo varchar (64) NOT NULL,
descripcion text NOT NULL,
titulo_subcategoria varchar (64) NOT NULL,
tipo_evento varchar (64) NOT NULL,
fecha_inicio date NOT NULL,
fecha_final date,
lugar_celebracion text NOT NULL default '',
precio_entrada int (32) unsigned default '0',
email varchar (32) NOT NULL,
telefono varchar (32) NOT NULL,
hora_inicio time,
hora_final time,
imagen varchar (32) NOT NULL default '',
estado tinyint (3) unsigned default '0',
nombre_cliente varchar (64) NOT NULL,
apellido_1_cliente varchar (64) NOT NULL,
apellido_2_cliente varchar (64) NOT NULL,
PRIMARY KEY(`id_evento`),
FOREIGN KEY (`id_cliente`) REFERENCES `clientes` (`id_cliente`) ON UPDATE CASCADE ON DELETE CASCADE,
FOREIGN KEY (`id_subcategoria`) REFERENCES `subcategorias` (`id_subcategoria`) ON UPDATE CASCADE ON DELETE CASCADE
)ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;

Y luego al mirar el tipo de tabla listandolas con mysqladmin me salen de tipo MyISAM.

Vamos como si no hiciese nada mi version de php es:

Client API version 3.23.49