我的mysql的版本是mysql5.1.30,存储过程没有问题,主数据已经写入了数据。执行存储过程后从数据没有收到任何信息,察看/usr/local/mysql_data/localhost.localdomain.err也没有任何log。
解决方案 »
- mysql_stmt_execute 执行成功,但是数据库中无数据
- 菜鸟求:MySQL存储图片能够自行输入吗?还是用程序实现?
- mysql同一个表中如何根据不同的条件将查询到的记录放到一个结果集中
- mysql trigger 中文字段问题
- mysql 的datetime 和date能不能直接比较大小
- mysql数据库怎样查询任意一个月的数据
- pasds_2232323仅仅只要最后的数字
- 小弟请教mysql jdbc 经典问题,communications link failure due to underlying exception
- 究竟有多少人用pltcl或pljava写PostgreSQL的存储过程?
- 请问在linux下MYSQL用户的默认密码是什么?
- 这条sql语句看不明白,求解。
- 关于mysql登录问题
stop slave;
set global sql_slave_skip_counter =1 ;
start slave;
之后Slave会和Master去同步 主要看Seconds_Behind_Master是否为0,直到为0时就已经同步了。。
+----------------------------------+---------------+-------------+-------------+---------------+------------------+---------------------+----------------------------+---------------+-----------------------+------------------+-------------------+-----------------+---------------------+--------------------+------------------------+-------------------------+-----------------------------+------------+------------+--------------+---------------------+-----------------+-----------------+----------------+---------------+--------------------+--------------------+--------------------+-----------------+-------------------+----------------+-----------------------+-------------------------------+---------------+---------------------------------------------------------------------------------------+----------------+----------------+
| Slave_IO_State | Master_Host | Master_User | Master_Port | Connect_Retry | Master_Log_File | Read_Master_Log_Pos | Relay_Log_File | Relay_Log_Pos | Relay_Master_Log_File | Slave_IO_Running | Slave_SQL_Running | Replicate_Do_DB | Replicate_Ignore_DB | Replicate_Do_Table | Replicate_Ignore_Table | Replicate_Wild_Do_Table | Replicate_Wild_Ignore_Table | Last_Errno | Last_Error | Skip_Counter | Exec_Master_Log_Pos | Relay_Log_Space | Until_Condition | Until_Log_File | Until_Log_Pos | Master_SSL_Allowed | Master_SSL_CA_File | Master_SSL_CA_Path | Master_SSL_Cert | Master_SSL_Cipher | Master_SSL_Key | Seconds_Behind_Master | Master_SSL_Verify_Server_Cert | Last_IO_Errno | Last_IO_Error | Last_SQL_Errno | Last_SQL_Error |
+----------------------------------+---------------+-------------+-------------+---------------+------------------+---------------------+----------------------------+---------------+-----------------------+------------------+-------------------+-----------------+---------------------+--------------------+------------------------+-------------------------+-----------------------------+------------+------------+--------------+---------------------+-----------------+-----------------+----------------+---------------+--------------------+--------------------+--------------------+-----------------+-------------------+----------------+-----------------------+-------------------------------+---------------+---------------------------------------------------------------------------------------+----------------+----------------+
| Waiting for master to send event | 192.168.1.113 | root | 3306 | 60 | mysql-bin.000006 | 106 | localhost-relay-bin.000053 | 251 | mysql-bin.000006 | Yes | Yes | epgdb | mysql,test | | | | | 0 | | 0 | 106 | 555 | None | | 0 | No | | | | | | 0 | No | 2013 | error connecting to master '[email protected]:3306' - retry-time: 60 retries: 86400 | 0 | |
+----------------------------------+---------------+-------------+-------------+---------------+------------------+---------------------+----------------------------+---------------+-----------------------+------------------+-------------------+-----------------+---------------------+--------------------+------------------------+-------------------------+-----------------------------+------------+------------+--------------+---------------------+-----------------+-----------------+----------------+---------------+--------------------+--------------------+--------------------+-----------------+-------------------+----------------+-----------------------+-------------------------------+---------------+---------------------------------------------------------------------------------------+----------------+----------------+
1 row in set (0.00 sec)
不太好看,
因为从SLAVE端的状态来看,上一次发生过IO错误。虽然现在正常了。
"不太好看,",用这个命令,你打的我根本看不清。show slave status \G