今天做了个replication实验
主从库可以连接,同步也没有问题,加入我同步的是test库下的aa表,
但是从库却没有该表的任何信息
show tables也没有该表,
但select确有结果,请问此时该表数据放在哪呢?奇怪
主从库可以连接,同步也没有问题,加入我同步的是test库下的aa表,
但是从库却没有该表的任何信息
show tables也没有该表,
但select确有结果,请问此时该表数据放在哪呢?奇怪
select count(*) from test.fs_blog_event_2 ; =74
从库
select count(*) from test.fs_blog_event_2; =70
期间我将从库slavestop所以数据会少4 ,正式没有同步然后我去从库test底下
show tables没有fs_blog_event_2这个表
目录下也没有frm等文件
奇怪啊
还有你的数据库版本
************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.48.2
Master_User: xxx
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: xxx-bin.000004
Read_Master_Log_Pos: 15433
Relay_Log_File: xxx-relay-bin.000002
Relay_Log_Pos: 15648
Relay_Master_Log_File: xxx-bin.000004
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB: test
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 15433
Relay_Log_Space: 15648
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
1 row in set (0.00 sec)
我已经启动了,从库如今和主库是一样的状态,我在从库下建表就可见,从主库同步的表均不可见,郁闷
File: XXX-bin.000004
Position: 15433
Binlog_Do_DB: test
Binlog_Ignore_DB: