自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(205)
  • 收藏
  • 关注

转载 mysql复制和内存引擎的表

清晰的格式:https://zhuanlan.zhihu.com/p/26985377When a master server shuts down and restarts, its MEMORY table...

2017-05-18 20:43:29 221

转载 error 1270 mysql主从

作者:河南-老宋(志强)链接:https://zhuanlan.zhihu.com/p/26224566来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 现象:...

2017-04-07 12:14:14 364

转载 Errcode: 17 - File exists

作者:河南-老宋(志强)链接:https://zhuanlan.zhihu.com/p/25239487来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。现象: ...

2017-02-14 21:55:53 1638

转载 information_schema里的表每次select时新建?

information_schema里的表每次select时新建?起因:InnoDB temporary table metadata is no longer stored to Inno...

2016-11-25 18:45:47 126

转载 PXC安装

在centos 7.2.1511上 10.23.100.11, 10.23.30.164, 10.23.77.125 这三个机器上安装pxc ...

2016-10-27 23:42:40 126

转载 binlog时间700101(1970-01-01)

起因很复杂,就不解释了。 mysql 5.6.20 现象:mysqlbinlog解析binlog时,发现文件头的信息如下: /*!50530 SET @@SESSION.P...

2016-08-10 21:43:29 197

转载 mysql uuid是不是有序增加的??

A UUID is designed as a number that is globally unique in space and time. Two calls to UUID() areexpected to g...

2016-07-23 21:29:10 1224

转载 mysqldump备份时加single-transaction会不会加锁

mysqldump --all-databases --master-data=2 --single-transaction --quick -R --events -uroot > /tmp/full.sql 通...

2016-07-13 22:20:40 935

转载 mysql partition table use to_days bug

to_days分区表 bug CREATE TABLE `aaaaaaaaaa` ( `id` int(255) NOT NULL AUTO_INCREMENT, ...

2016-07-08 16:50:19 102

转载 5.7 mysqldump routines

5.7 mysqldump routines 场景:1 新建一个5.7.12的实例2 导出全库mysqldump --all-databases -uroot -ptest --set-gtid-p...

2016-06-22 11:44:04 305

转载 mysql临时表的问题

mysql临时表的问题:mysql 5.71 临时表只能是 MEMORY, MyISAM, MERGE, or InnoDB.mysql cluster不支持临时表2 同一个语句中不能多次用到同一...

2016-06-04 23:32:12 245

转载 mysql binlog_format和临时表

mysql binlog_format和临时表mysql 5.7.12mysql> show variables like '%binlog_f%';+---------------+--------...

2016-06-04 23:29:51 570

转载 mysql proxy安装

安装包下载:http://downloads.mysql.com/archives/proxy/文档:http://downloads.mysql.com/docs/mysql-proxy-en.pd...

2016-06-01 22:04:26 67

转载 mysql route安装

mysql route 安装包下载:http://dev.mysql.com/downloads/router/文档:http://downloads.mysql.com/doc...

2016-06-01 22:03:26 101

转载 haproxy的安装

下载地址: http://www.haproxy.org/#down 文档地址: http://www.haproxy.org/#doc1.6 ...

2016-06-01 22:02:37 68

转载 mysqlbinlog rewrite-db选项

mysqlbinlog rewrite-db选项5.7中新mysqlbinlog新增加了rewrite-db选项,在binlog_format=row时,可以转换库的名称:在binlog_format=...

2016-05-31 22:29:25 795

转载 show processlist host 为 百分号(%)

今天用户报出来一个问题:show full processlist;时出现下面的情况: ...

2016-03-23 20:05:04 383

转载 mysql error 1292

朋友问一个问题:delete时出现一个warning 1292.重现:mysql> create table test (id int);Query OK, 0 rows affected...

2016-03-18 21:08:29 311

转载 change master 未指定master_log_file

change 时未指定master_log_file,master_log_pos那么会从MASTER_LOG_FILE='' and MASTER_LOG_POS=4开始 同事要实现一个东西:...

2016-03-11 15:59:34 588

转载 create table if not exists Waiting for table metadata lock

create table if not exists Waiting for table metadata lock版本mysql 5.5现象:mysql> show full processlist;...

2016-02-01 19:57:56 183

转载 character_set_database的意义

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show vari...

2016-01-27 23:56:40 899

转载 mysql.slow_log表里记录的start_time是语句的什么时间?

mysql.slow_log表里记录的start_time是语句的什么时间?答:语句的结束时间mysql> select now(); select count(distinct url) fro...

2016-01-18 16:34:17 469

转载 重启mysql对于auto_increment的影响

重启mysql对于auto_increment的影响:mysql> alter table inc_innodb AUTO_INCREMENT=100;Query OK, 0 rows affected (0.00...

2015-12-09 21:42:43 237

转载 innodb对于update,insert,delete关于auto_incremant的影响

innodb对于update,insert,delete关于auto_incremant的影响mysql> create table inc_innodb (id int auto_increment primary ...

2015-12-09 21:41:20 129

转载 myisam对于update,insert,delete关于auto_incremant的影响

myisam对于update,insert,delete关于auto_incremant的影响:mysql> create table inc_myisam (id int auto_increment primary...

2015-12-09 21:39:31 216

转载 mytop的使用

mytop使用:可以监控mysql线程的状态:下载:http://jeremy.zawodny.com/mysql/mytop/安装:yum install perl perl-DBI p...

2015-12-07 17:10:33 127

转载 mysql where条件中 字符串右边的空格会忽略

mysql where条件中 字符串右边的空格会忽略 All MySQL collations are of type PADSPACE. This means that all CHAR, V...

2015-12-07 14:42:35 570

转载 MySQLTuner的介绍

可以快速的review mysql 的安装 ,并提出优化的建议: 可以在http://mysqltuner.com/下载 使用的时候遇到的问题: ...

2015-12-07 14:34:19 114

转载 mysql主从和触发器的关系

mysql主从和触发器的关系binlog_format=row和binlog_format=statement是不一样的环境准备:mysql 5.5主库上:create databa...

2015-12-04 10:34:10 388

转载 本地连接时,通过localhost不能登陆到指定的端口

本地连接时,通过localhost不能登陆到指定的端口 朋友说他的一台服务器上,装了多个mysql,用了不同的端口,通过localhost的方式指定端口时,连上的还是3306的端口 mysql ...

2015-11-02 19:40:01 431

转载 逻辑导入导出和max-allowed-packet的关系

mysqldump和max-allowed-packet的测试: 导入和导出都包括 环境准备: 库中有表: mysql> se...

2015-10-23 09:52:45 151

转载 Replicate_Wild_Ignore_Table 的值显示两次

Replicate_Wild_Ignore_Table 的值显示两次 网友提问,为什么会出现这种情况 Replicate_Wild_Ignore_Table: mysq...

2015-10-13 16:08:07 186

转载 event中有多余的分号引起mysqldump备份导入时报错

event中有多余的分号引起mysqldump备份导入时报错 有一个导入一直提示报错,看起来应该是正常。 就对这个报错进行查看: 查看到sql文本中的 DELIMITER ;...

2015-10-13 10:37:30 181

转载 mysql启动时报错Can't read from messagefile errmsg.sys

启动数据库:mysqld_safe --defaults-file=/etc/my.cnf &报错:150915 13:30:46 [ERROR] Can't read from messagefile '...

2015-09-15 13:39:15 578

转载 sql_slave_skip_counter跳过太多的反应

sql_slave_skip_counter跳过太多的反应 一套主从环境, 在主上操作的ddl,dml操作,不能同步到从库上,看主从状态却也是正常的: 主:...

2015-09-09 09:55:02 126

转载 kill flush tables的思考

数据库发生一个现象:在mysqldump备份的时候,会执行flush tables语句,再连接上的dml语句就会等待Waiting for table flush。是因为一个长时间运行的select导致flush table...

2015-09-08 15:48:31 130

转载 ERROR 1168 (HY000): Unable to open underlying table which is

mysql> show create table logs_user_login;ERROR 1168 (HY000): Unable to open underlying table which is differ...

2015-09-01 20:53:10 705

转载 ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corrupted

mysql> SHOW FUNCTION STATUS ; ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably c...

2015-08-31 23:45:23 162

转载 ERROR 1577 (HY000): Cannot proceed because system tables used by Event Schedule

mysql> select *from information_schema.events;ERROR 1577 (HY000): Cannot proceed because system tables used ...

2015-08-31 23:39:45 545

转载 mysql主从中,从和主数据相差较多

mysql主从中,从和主数据相差较多 mysql的主从环境: 从数据和主数据不同步,两个原因引起: 1 io thread慢: 主库的binlog不能及时的读到...

2015-08-28 16:44:02 299

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除