Problema para restaurar una tabla en mysql

70 views
Skip to first unread message

Marcelo Barberis

unread,
May 19, 2024, 7:07:57 PM5/19/24
to publicesvfoxpro
Buenas noches, tengo un problema con una tabla para restaurar en mi base de datos en un hosting con un pequeño detalle.

Tengo esta tabla que me genera el comando mysqldump con este detalle al final, la tabla no se restaura y se detiene y no continua con las tablas restante la restauracion:
DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT

Pero si a este texto le realizo un pequeño cambio a:
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
la restauracion se realiza son problemas.

Mi consulta es como puedo hacer para realizar este cambio para no tener el problema de que pueda estar mi base de datos incompleta, dado que realizo el proceso de generar backup y seguido la restauracion todo esto al momento de cerrar mi aplicacion.

Este proceso realizo para generar el backup
TEXT TO lcComando TEXTMERGE NOSHOW PRETEXT 15
<<m.lcFolderActual>>Librerias\mysqldump.exe -u<<m.lcUserBK>> -p<<m.lcPassBK>> -h <<m.lcHostBK>> -R <<m.lcBaseDatosBK>> <<lcTablasBK>> > <<m.lcFileBackup>>
ENDTEXT

DROP TABLE IF EXISTS `tbl_datos_empresa`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tbl_datos_empresa` (
  `id_datos_emp` int(11) NOT NULL AUTO_INCREMENT,
  `id_empresa` int(11) NOT NULL DEFAULT '0',
  `id_operador` int(11) NOT NULL DEFAULT '0',
  `guardar_nube` int(1) NOT NULL DEFAULT '0',
  `guardar_nube_final` int(1) NOT NULL DEFAULT '0',
  `usar_whatsapp_fast` int(1) NOT NULL DEFAULT '0',
  `usar_whatsapp_normal` int(1) NOT NULL DEFAULT '0',
  `activ_economica` varchar(245) NOT NULL DEFAULT '',
  `adelanto_hd` int(3) NOT NULL DEFAULT '0',
  `adelanto_digital` int(3) NOT NULL DEFAULT '0',
  `adelanto_cable` int(3) NOT NULL DEFAULT '0',
  `costo_hd` decimal(12,2) NOT NULL DEFAULT '0.00',
  `costo_digital` decimal(12,2) NOT NULL DEFAULT '0.00',
  `costo_cable` decimal(12,2) NOT NULL DEFAULT '0.00',
  `corte_mes` int(2) NOT NULL DEFAULT '0',
  `baja_mes` int(2) NOT NULL DEFAULT '0',
  `costo_reconex` decimal(12,2) NOT NULL DEFAULT '0.00',
  `dia_mostrar` int(2) NOT NULL DEFAULT '0',
  `activar_alerta_deudor` int(1) NOT NULL DEFAULT '0',
  `tipo_impresion` int(1) NOT NULL DEFAULT '0',
  `impresora_caja` varchar(150) NOT NULL DEFAULT '',
  `impresora_otros` varchar(150) NOT NULL DEFAULT '',
  `activar_respaldo` int(1) NOT NULL DEFAULT '0',
  `actualizar_deudores` int(1) NOT NULL DEFAULT '0',
  `corte_automatico` int(1) NOT NULL DEFAULT '0',
  `usar_vista_previa` int(1) NOT NULL DEFAULT '0',
  `costo_decoder` decimal(12,2) NOT NULL DEFAULT '0.00',
  `nro_fact` int(1) NOT NULL DEFAULT '0',
  `alerta_dosifica` int(3) NOT NULL DEFAULT '0',
  `fecha_ulti_deudores` date NOT NULL DEFAULT '0000-00-00',
  `cod_ambiente` int(11) NOT NULL DEFAULT '0',
  `cod_modalidad` int(11) NOT NULL DEFAULT '0',
  `cod_sucursal` int(11) NOT NULL DEFAULT '0',
  `cod_pto_venta` int(11) NOT NULL DEFAULT '0',
  `nombre_sucursal` int(11) NOT NULL DEFAULT '0',
  `nombre_puntovta` int(11) NOT NULL DEFAULT '0',
  `nombre_sistema` varchar(100) NOT NULL DEFAULT '',
  `cod_sistema` varchar(100) NOT NULL DEFAULT '',
  `token_sistema` text NOT NULL,
  `vigencia_token_desde` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `vigencia_token_hasta` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `codigo_cuis` varchar(100) NOT NULL DEFAULT '',
  `vigencia_utc_cuis` varchar(50) NOT NULL DEFAULT '',
  `vigencia_amd_cuis` date NOT NULL DEFAULT '0000-00-00',
  `codigo_cufd` varchar(240) NOT NULL DEFAULT '',
  `vigencia_utc_cufd` varchar(50) NOT NULL DEFAULT '',
  `vigencia_amd_cufd` date NOT NULL DEFAULT '0000-00-00',
  `codigo_control` varchar(200) NOT NULL DEFAULT '',
  `razon_social` varchar(200) NOT NULL DEFAULT '',
  `municipio` varchar(200) NOT NULL DEFAULT '',
  `direccion` varchar(200) NOT NULL DEFAULT '',
  `nro_nit` decimal(15,0) NOT NULL DEFAULT '0',
  `cod_act` char(11) NOT NULL DEFAULT '',
  `telefono` varchar(20) NOT NULL DEFAULT '',
  `texto_factura` varchar(240) NOT NULL DEFAULT '',
  `leyenda_on_line` varchar(240) NOT NULL DEFAULT '',
  `leyenda_off_line` varchar(240) NOT NULL DEFAULT '',
  PRIMARY KEY (`id_datos_emp`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='TBL_DATOS_EMPRESA';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tbl_datos_empresa`
--

--
Marcelo Barberis Gutierrez
Sistemas Informaticos
Villa Montes - Bolivia
Telef.: +591-76830544

JaiSan Miranda Herrera

unread,
May 20, 2024, 10:16:29 AM5/20/24
to publice...@googlegroups.com
Creo que es mejor , generar índices y autoincremen CON ALTER TABLE al final . 

--
Blog de la Comunidad Visual FoxPro en Español http://comunidadvfp.blogspot.com
---
Has recibido este mensaje porque estás suscrito al grupo "Comunidad de Visual Foxpro en Español" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a publicesvfoxp...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/publicesvfoxpro/CAMUm0dkNO-JgRy6Yt%3Duoz51maU-vLjvc3-612_L6QF544MGS%2Bg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages