03 2015 档案

摘要:CREATE TABLE time1 ( id SMALLINT, time1 TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, time2 TIMESTAMP DEFAULT CURRENT_TI... 阅读全文
posted @ 2015-03-30 10:08 afx1007 阅读(321) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2015-03-16 09:40 afx1007 阅读(198) 评论(0) 推荐(0)
摘要:参数详解:参数释义--all-databases, -A导出全部数据库。--all-tablespaces, -Y导出全部表空间。--no-tablespaces, -y不导出任何表空间信息。--add-drop-database每个数据库创建之前添加drop数据库语句。--add-drop-tab... 阅读全文
posted @ 2015-03-16 09:19 afx1007 阅读(211) 评论(0) 推荐(0)
摘要:在使用SQLyog连接mysql时报以下错误:ERROR 2013 : Lost connection to MySQL server at 'waiting for initial communication packet', system error: 2经过其他测试发现账号和密码,telnet... 阅读全文
posted @ 2015-03-10 16:55 afx1007 阅读(508) 评论(0) 推荐(0)
摘要:Error_code: 1032 【现象】 Last_Error: Could not execute Update_rows event on table kebao.t1; Can't find record in 't1', Error_code: 1032; handler erro... 阅读全文
posted @ 2015-03-09 16:41 afx1007 阅读(909) 评论(0) 推荐(0)
摘要:主要搭建步骤如下:1.打开binlog,设置server_id 打开主库的--log-bin,并设置server_id 2.主库授权 --最好也在从库对主库授权,便于切换。 在主库对从库的同步账户授权: grant replication slave on *.* to '... 阅读全文
posted @ 2015-03-06 13:00 afx1007 阅读(251) 评论(0) 推荐(0)
摘要:mysql 主从复制是异步复制由主从之间的3个线程完成 master I/O --主库 slave I/O --备库 slave SQL --备库 必须打开主库的binlog 1.slave I/O连上master,从指定binlog位置开始传输日志(master.i... 阅读全文
posted @ 2015-03-06 12:53 afx1007 阅读(190) 评论(0) 推荐(0)