modifique el script y lo ejecute en mi server y corrio sin inconvenientes, encontre otro ; adicional y una declaracion en la tb mensajes de tamaño 1024.
este es el script modificado y corriendo.....lo ejecute desde my phpmyadmin importando los datos.
Create Table Alumnos
(IDAlumno VarChar(10) not null,
ApellidosNombre VarChar(50),
Direccion VarChar(25),
Numero VarChar(10),
CodigoPostal VarChar(5),
Localidad VarChar(20),
Provincia VarChar(15),
FechaNacimiento Date,
Telefono VarChar(10),
Email VarChar(25),
Foto Blob,
Comentario Blob,
CodEstudio Integer
) type = InnoDB;
Create Table Asignaturas
(CodAsignatura Integer not null,
CursoAcademico VarChar(10) not null,
RefAsignatura VarChar(10),
PlanEstudios VarChar(10)
)Type = InnoDB;
Create Table AlumnosMatriculados
(CodGrupo VarChar(1) not null,
CodAsignatura Integer not null,
CursoAcademico VarChar(10) not null,
Tipo VarChar(10) not null,
INDEX (CodGrupo),
INDEX (CodAsignatura),
INDEX (CursoAcademico),
INDEX (Tipo),
IDAlumno VarChar(10) not null,
NotaOr Numeric(4,2),
NotaEx Numeric(4,2)
)Type = InnoDB;
Create Table GrupoAsignaturas
(CodGrupo VarChar(1) not null,
CodAsignatura Integer not null,
CursoAcademico VarChar(10) not null,
Tipo VarChar(10) not null,
INDEX (CodGrupo),
INDEX (CodAsignatura),
INDEX (CursoAcademico),
INDEX (Tipo),
Horario Varchar(10),
Grupo Varchar(10)
)Type = InnoDB;
create Table SesionesPracticas
(SesionNumero Integer not null,
CodActividad Integer not null,
HoraInicio Date not null,
HoraFin Date,
Aula VarChar(10),
DiaSemana VarChar(10),
MascaraIP VarChar(15),
CodGrupo VarChar(1) not null,
CodAsignatura Integer not null,
CursoAcademico VarChar(10) not null,
Tipo VarChar(10) not null,
INDEX (CodGrupo),
INDEX (CodAsignatura),
INDEX (CursoAcademico),
INDEX (Tipo)
)Type = InnoDB;
Create Table ControlAsistencia
(FechaAsistencia Varchar(10) not null,
IDAlumno VarChar(10) not null,
NumPuesto VarChar(10),
SesionNumero Integer,
CodActividad Integer,
IP VarChar(15),
NotaControl SmallInt,
CalificacionSesion VarChar(100)
)Type = InnoDB;
Create Table Documentos
(Codigo Integer not null,
CodAsignatura Integer not null,
CursoAcademico VarChar(10) not null,
Categoria VarChar(20) not null,
INDEX (Codigo),
INDEX (CodAsignatura),
INDEX (CursoAcademico),
INDEX (Categoria),
Descripcion Blob,
Titulo VarChar(100),
Enlace VarChar(100),
Orden Integer,
TipoDocumento VarChar(20),
IDPropietario VarChar(10),
Visualizar VarChar(2),
Modificar VarChar(2),
Entregar VarChar(2),
FechaLimite Date
)Type = InnoDB;
Create Table DocumentosEnviados
(Codigo Integer not null,
CodAsignatura Integer not null,
CursoAcademico VarChar(10) not null,
Categoria VarChar(20) not null,
INDEX (Codigo),
INDEX (CodAsignatura),
INDEX (CursoAcademico),
INDEX (Categoria),
IDRemitente VarChar(10) not null,
FechaEnvio Date,
HoraEnvio Date,
DocumentoEnlace VarChar(50),
IPRemitente VarChar(20),
IDCalificador VarChar(10),
FechaCalificacion Date,
Calificacion VarChar(20),
Observaciones VarChar(240)
)Type = InnoDB;
Create Table Profesores
(IDProfesores VarChar(10) not null,
Apellidos VarChar(30),
Nombre VarChar(20),
Foto Blob,
Email VarChar(50),
Tutorias VarChar(100),
Telefono VarChar(10)
)Type = InnoDB;
Create Table Estudios
(CodEstudio Integer not null,
Estudio VarChar(50),
CodFacultad Integer
)Type = InnoDB;
Create Table Facultades
(CodFacultad Integer not null,
Facultad VarChar(50)
)Type = InnoDB;
Create Table RefAsignaturas
(RefAsignatura VarChar(10) not null,
PlanEstudios VarChar(10) not null,
Nombre VarChar(50),
Tipo VarChar(15),
CreditosTeoria Numeric(4,2),
CreditosPracticas Numeric(4,2),
Descripcion Blob,
CodEstudio Integer
)Type = InnoDB;
Create Table Mensajes
(CodMensaje Integer not null,
ID Varchar(10) not null,
CodMensajePadre Integer,
Fecha Date,
Hora Date,
Texto VarChar(25),
CodGrupoPracticas VarChar(1),
CodAsignatura Integer,
CursoAcademico VarChar(10),
Ambito VarChar(20),
Titulo VarChar(100)
)Type = InnoDB;
Create Table Actividad
(CodActividad Integer not null,
Actividad VarChar(20)
)Type = InnoDB;
Create Table HistorialAlumnos
(IDProfesores VarChar(10) not null,
IDAlumno VarChar(10) not null,
Observaciones Blob
)Type = InnoDB;
Create Table Sesion
(FechaLoggin Date not null,
HoraLoggin Date not null,
ID Varchar(10) not null,
FechaLoggout Date,
Sesion VarChar(30)
)Type = InnoDB;
Create Table ProfesoresGrupos
(CodGrupo VarChar(1) not null,
CodAsignatura Integer not null,
CursoAcademico VarChar(10) not null,
Tipo VarChar(10) not null,
INDEX (CodGrupo),
INDEX (CodAsignatura),
INDEX (CursoAcademico),
INDEX (Tipo),
IDProfesores VarChar(10) not null,
Responsable Varchar(10)
)Type = InnoDB;
Alter Table Alumnos add Primary Key (IDAlumno);
Alter Table Asignaturas add Primary Key(CodAsignatura,CursoAcademico);
Alter Table AlumnosMatriculados add Primary Key(CodGrupo,CodAsignatura,CursoAcademico,Tipo,IDAlumno);
Alter Table GrupoAsignaturas add Primary Key(CodGrupo,CodAsignatura,CursoAcademico,Tipo);
Alter Table ControlAsistencia add Primary Key(FechaAsistencia,IDAlumno);
Alter Table Documentos add Primary Key(Codigo,CodAsignatura,CursoAcademico,Categoria);
Alter Table Profesores add Primary Key(IDProfesores);
Alter Table Estudios add Primary Key(CodEstudio);
Alter Table Facultades add Primary Key(CodFacultad);
Alter Table RefAsignaturas add Primary Key(RefAsignatura,PlanEstudios);
Alter Table SesionesPracticas add Primary Key(SesionNumero,CodActividad);
Alter Table Mensajes add Primary Key(CodMensaje,ID);
Alter Table Actividad add Primary Key(CodActividad);
Alter Table HistorialAlumnos add Primary Key(IDProfesores,IDAlumno);
Alter Table Sesion add Primary Key(FechaLoggin,HoraLoggin,ID);
Alter Table DocumentosEnviados add Primary Key(Codigo,CodAsignatura,CursoAcademico,Categoria,IDRemitente);
Alter Table ProfesoresGrupos add Primary Key(CodGrupo,CodAsignatura,CursoAcademico,Tipo,IDProfesores);
Alter Table Alumnos add Foreign Key(CodEstudio) references Estudios(CodEstudio);
Alter Table Asignaturas add Foreign Key(RefAsignatura,PlanEstudios)references RefAsignaturas(RefAsignatura,PlanEstudios);
Alter Table AlumnosMatriculados add Foreign Key(IDAlumno)references Alumnos(IDAlumno);
Alter Table AlumnosMatriculados add FOREIGN Key(CodAsignatura,CodGrupo,CursoAcademico,Tipo)
references GrupoAsignaturas(CodAsignatura,CodGrupo,CursoAcademico,Tipo);
Alter Table SesionesPracticas add FOREIGN Key(CodAsignatura,CodGrupo,CursoAcademico,Tipo)
references GrupoAsignaturas(CodAsignatura,CodGrupo,CursoAcademico,Tipo);
Alter Table ControlAsistencia add Foreign Key(IDAlumno)references Alumnos(IDAlumno);
Alter Table ControlAsistencia add Foreign Key(SesionNumero,CodActividad)
references SesionesPracticas(SesionNumero,CodActividad);
Alter Table Documentos add Foreign Key(CodAsignatura,CursoAcademico)
references Asignaturas(CodAsignatura,CursoAcademico);
Alter Table GrupoAsignaturas add Foreign Key(CodAsignatura,CursoAcademico)
references Asignaturas(CodAsignatura,CursoAcademico);
Alter Table Estudios add Foreign Key(CodFacultad)references Facultades(CodFacultad);
Alter Table RefAsignaturas add Foreign Key(CodEstudio) references Estudios(CodEstudio);
Alter Table SesionesPracticas add Foreign Key(CodActividad)references Actividad(CodActividad);
Alter Table HistorialAlumnos add Foreign Key(IDProfesores)references Profesores(IDProfesores);
Alter Table HistorialAlumnos add Foreign Key(IDAlumno)references Alumnos(IDAlumno);
Alter Table ProfesoresGrupos add FOREIGN Key(CodGrupo,CodAsignatura,CursoAcademico,Tipo)
references GrupoAsignaturas(CodGrupo,CodAsignatura,CursoAcademico,Tipo);
Alter Table DocumentosEnviados add FOREIGN Key(Codigo,CursoAcademico,Categoria,CodAsignatura)
references Documentos(Codigo,CursoAcademico,Categoria,CodAsignatura);
Alter Table ProfesoresGrupos add Foreign Key(IDProfesores)references Profesores(IDProfesores);
Create unique Index Ix1_35 on Sesion(Sesion);
Alter Table DocumentosEnviados add FOREIGN Key
(Codigo,CursoAcademico,Categoria,CodAsignatura) references Documentos (Codigo,CursoAcademico,Categoria,CodAsignatura);