Tema: Error mysql
Ver Mensaje Individual
Antiguo 24-oct-2005, 19:41   #1 (permalink)
MARKWEB
MARKWEB ha deshabilitado el karma
 
Avatar de MARKWEB
 
Fecha de Ingreso: noviembre-2002
Ubicación: En mi casa
Mensajes: 1.519
Enviar un mensaje por ICQ a MARKWEB Enviar un mensaje por AIM a MARKWEB Enviar un mensaje por Yahoo  a MARKWEB
Error mysql

Tengo una tabla que antes me corria muy bien en otro hosting

la version de mysql que tiene mi hosting ahora es: MySQL version 4.0.25-standard

el error que me da es esto

Código:
#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 'DEFAULT CHARSET=latin1' at line 8
y el codigo es este:

Código:
DROP TABLE IF EXISTS usuarios;
CREATE TABLE usuarios (
  id bigint(6) NOT NULL auto_increment,
  nick char(40) NOT NULL default '',
  `password` char(32) NOT NULL default '',
  cargo int(3) NOT NULL default '0',
  fconexion datetime default NULL,
  KEY id (id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

#
# Volcar la base de datos para la tabla `usuarios`
#

INSERT INTO usuarios (id, nick, password, cargo, fconexion) VALUES (434, 
'bbb', '123', 3, NULL);
__________________
Un MEJOR AMIGO es como un trébol de 4 hojas, DIFÍCIL DE ENCONTRAR y ES DE BUENA SUERTE TENER UNO
MARKWEB está desconectado   Responder Citando