2014年12月19日

【转载】Mysql binlog relaylog 日志迁移

摘要: 背景:默认情况下,mysql的数据、binlog、relaylog都是保存在同一个磁盘上,路径根据每个人的设置不一。当mysql数据库中数据或日志增长很快时,磁盘可能面临空间不够或者IO性能跟不上,所以把日志迁移到其他磁盘是首先想到的工作。但日志迁移的文档并不多,本文根据实践记录,希望对大家有点参考作用。假设迁移前的路径如下:binlog:/data/mysql_data/mysql数... 阅读全文

posted @ 2014-12-19 17:14 DJ IN MUSIC 阅读(1871) 评论(0) 推荐(0) 编辑

字符集设置为UTF-8

摘要: vi/etc/my.cnf[mysqld]character-set-server=utf8[mysql]default-character-set=utf8 来自为知笔记(Wiz) 阅读全文

posted @ 2014-12-19 17:11 DJ IN MUSIC 阅读(461) 评论(0) 推荐(0) 编辑

mysql 利用binlog增量备份,还原实例

摘要: 一,什么是增量备份增量备份,就是将新增加的数据进行备份。假如你一个数据库,有10G的数据,每天会增加10M的数据,数据库每天都要备份一次,这么多数据是不是都要备份呢?还是只要备份增加的数据呢,很显然,我只要备份增加的数据。这样减少服务器的负担。二,启用binlogmvi my.cnflog-bin=/var/lib/mysql/mysql-bin.log,如果是这样的话log-bin=mysql-... 阅读全文

posted @ 2014-12-19 17:05 DJ IN MUSIC 阅读(374) 评论(0) 推荐(0) 编辑

[转载]mysql的binlog安全删除

摘要: [转载]mysql的binlog安全删除理论上,应该在配置文件/etc/my.cnf中加上binlog过期时间的配置项,expire_logs_days = 10但是如果没有加这一项,随着产生越来越多的binlog,磁盘被吃掉了不少。可以直接删除binlog文件,但是可以通过mysql提供的工具来删除更安全。因为purge会更新mysql-bin.index中的条目,而直接删除的话,mysql-... 阅读全文

posted @ 2014-12-19 17:00 DJ IN MUSIC 阅读(167) 评论(0) 推荐(0) 编辑

Warning: Using innodb_additional_mem_pool_size is DEPRECATED

摘要: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory alloca... 阅读全文

posted @ 2014-12-19 16:56 DJ IN MUSIC 阅读(806) 评论(0) 推荐(0) 编辑

[转载] mysql5.6 删除之前的ibdata1文件后再重新生成,遇到[Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened.问题

摘要: [转载] mysql5.6 删除之前的ibdata1文件后再重新生成,遇到[Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened.问题转载:http://blog.csdn.net/wxc20062006/article/details/179994071.在安装m... 阅读全文

posted @ 2014-12-19 16:50 DJ IN MUSIC 阅读(2002) 评论(0) 推荐(1) 编辑

You must SET PASSWORD before executing this statement解决

摘要: [转载] MySql5.6操作时报错:You must SET PASSWORD before executing this statement解决转载: http://blog.csdn.net/yanzi1225627/article/details/8694358参考前文利用安全模式成功登陆,然后修改密码,等于给MySql设置了密码。登陆进去后,想创建一个数据库测试下。得到的结果确实:ERR... 阅读全文

posted @ 2014-12-19 16:19 DJ IN MUSIC 阅读(225) 评论(0) 推荐(0) 编辑

Using unique option prefix myisam-recover instead of myisam-recover-option

摘要: [转载]关于mysql error.log报"Using unique option prefix myisam-recover instead of myisam-recover-options ..."转载:http://blog.csdn.net/cloud_xy/article/details/21756601启动时日志中有这个警告的:[Warning] Using unique opti... 阅读全文

posted @ 2014-12-19 16:15 DJ IN MUSIC 阅读(714) 评论(0) 推荐(1) 编辑

[Warning] TIMESTAMP with implicit DEFAULT value is deprecated

摘要: As indicated by the warning, to turn off the nonstandard behaviors, enable the new explicit_defaults_for_timestamp system variable at server startup. With this variable enabled, the server handles TIM... 阅读全文

posted @ 2014-12-19 16:09 DJ IN MUSIC 阅读(898) 评论(0) 推荐(0) 编辑

导航