You are on page 1of 2

GRANT REPLICATION SLAVE ON *.* TO 'esclavo2'@'192.168.43.

176' identified by '123


';
flush tables with read lock;
show master status;
show master status;
0000012 313
1015
show master status;
mysqldump -u root -p --opt derecho_examen > respaldo2.sql
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT REPLICATION SLAVE ON *.* TO 'esclavo1'@'192.168.43.71' identified b
y '123';
Query OK, 0 rows affected (0.17 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| Nueva carpeta |
| amor |
| derecho_examen |
| fragmentacion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
8 rows in set (0.17 sec)
mysql> use derecho_examen;
Database changed
mysql> show tables;
+--------------------------+
| Tables_in_derecho_examen |
+--------------------------+
| administrador |
| config |
| encuesta |
| encuesta_opc |
| encuesta_voto |
| estado |
| estudios |
| evento_ocupa |
| fecha_evento |
| lugar |
| orientacion |
| prop_nivel |
| prop_status |
| prop_tipo |
| tadmin |
| tasistente |
+--------------------------+
16 rows in set (0.03 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.09 sec)
mysql> flush tables with read lock;
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> show master status;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000010 | 326 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
mysql>

You might also like