Mysql同步复制
时间:2008-09-12 来源:zlj2208
[root@fedora data]# mysqldump -uroot -p123456 mytestdb>/home/zhoulj/mytestdb.sql
[root@fedora data]# mysql -u root -p123456 mytestdb </home/zhoulj/mytestdb.sql
Slave_IO_State: Waiting for master to send event
Master_Host: 10.4.5.221
Master_Log_File: fedora-bin.000005
Relay_Log_File: fedora-relay-bin.000006
Relay_Master_Log_File: fedora-bin.000005
Replicate_Do_DB: mytestdb
echo "mysql server stoped."
rm -rf /usr/local/mysql/data/master.info
echo "removed master.info "
echo "mysql server started."
echo "mysql server stoped."
rm -rf /usr/local/mysql/data/master.info
echo "removed master.info "
echo "mysql server started."
echo "mysql server work at Slave."