Sunteți pe pagina 1din 1

En los PC que van a replicar hacia la bd consolidada

-----------------------------------------------------
Bajar el servidor mysql.
c:\xampp\mysql\bin\
my.ini o my.cnf
------------------
#skip-networking
#skip-federated
federated
Iniciar el servidor mysql

En el PC servidor
-------------------
Find your MySQL config file (my.cnf is usually in /etc/mysql)
and comment out the following line by putting a hash character in front of it as
shown:
# bind-address = 127.0.0.1
o bien,
cambiar 127.0.01 por
la IP fija para que puedan ver la bd los pc clientes
(Ver en el server este cambio)

Restart the mysql server.

Crear las tablas defereted


CREATE TABLE `tipo_pago_rem` (
`id_tipo_pago` tinyint(4) NOT NULL,
`nm_tipo_pago` char(15) DEFAULT NULL,
`nm_corto` char(4) DEFAULT NULL,
PRIMARY KEY (`id_tipo_pago`)
) ENGINE=FEDERATED DEFAULT CHARSET=latin1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMA
T=DYNAMIC
CONNECTION='mysql://lab:lab2016@192.168.0.20:3306/labdental/tipo_pago';
INSERT tipo_pago_rem
( id_tipo_pago, nm_tipo_pago, nm_corto )
SELECT 11, 'NUEVO PAGO','NEWPAG'
SELECT * FROM tipo_pago_rem
SELECT @@version;

S-ar putea să vă placă și