随笔 - 404  文章 - 4  评论 - 0  阅读 - 25万

随笔分类 -  MySQL管理

上一页 1 2 3
MySQL闪回工具之myflash 和 binlog2sql
摘要:MySQL闪回工具之:binlog2sql https://github.com/danfengcao/binlog2sql MYSQL Binglog分析利器:binlog2sql使用详解 :http://blog.itpub.net/27067062/viewspace-2135398/ 实践 阅读全文
posted @ 2018-08-30 15:51 HelonTian 阅读(973) 评论(0) 推荐(0) 编辑
mysql5.7多实例安装
摘要:[root@vhost1]# cd /opt/source[root@vhost1]#ls mysql-5.7.21-linux-glibc2.12-x86_64.tar.gz[root@vhost1]# tar -zxvf mysql-5.7.21-linux-glibc2.12-x86_64.t 阅读全文
posted @ 2018-08-18 22:52 HelonTian 阅读(963) 评论(0) 推荐(0) 编辑
二进制安装MySQL5.6 MySQL5.7
摘要:1:系统版本 [root@vhost1 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) 2:添加用户和组 chattr -i /etc/shadow /etc/group /etc/ 阅读全文
posted @ 2018-08-17 16:33 HelonTian 阅读(366) 评论(0) 推荐(0) 编辑
mysql中replicate_wild_do_table和replicate_do_db区别
摘要:mysql中replicate_wild_do_table和replicate_do_db区别 如master(主)服务器上设置 replicate_do_db=elonuse mysql;update elon.table set 那么slave(从)服务器上第二句将不会被执行 如master设置 阅读全文
posted @ 2018-07-27 16:37 HelonTian 阅读(1736) 评论(0) 推荐(0) 编辑
在线表结构变更
摘要:1:Percona的pt-online-schema-change,Facebook的OSC等三方工具 2:在备库修改通过切换实现滚动变更 3:升级MySQL到5.6/5.7通过官方Online DDL实现部分变更。 然而,引入触发器带来的锁竞争问题,主备切换带来的附加成本. gh-ost的设计号称 阅读全文
posted @ 2018-07-11 21:29 HelonTian 阅读(134) 评论(0) 推荐(0) 编辑
MySQL的性能指标计算和优化方法
摘要:MySQL的性能指标计算和优化方法1 QPS计算(每秒查询数) 针对MyISAM引擎为主的DB mysql> show global status like 'questions';+ + +| Variable_name | Value |+ + +| Questions | 2805815665 阅读全文
posted @ 2018-06-20 19:03 HelonTian 阅读(193) 评论(0) 推荐(0) 编辑
mysqlbinlog读懂binlog
摘要:binlog 报unknown variable 'default-character-set=utf8' 方法1: 在/etc/my.cnf 中将default-character-set=utf8修改成charater-set-server=utf8 方法2: mysqlbinlog --no- 阅读全文
posted @ 2018-06-20 10:38 HelonTian 阅读(278) 评论(0) 推荐(0) 编辑
将MSQL中的数据导出至EXCEL
摘要:mysql> show variables like '%secure%';+ + +| Variable_name | Value |+ + +| secure_auth | ON || secure_file_priv | /data/var-3307 |+ + +2 rows in set ( 阅读全文
posted @ 2018-06-14 22:46 HelonTian 阅读(143) 评论(0) 推荐(0) 编辑
ERROR 1366 (HY000): Incorrect string value:MySQL数据库、表的字符集为GBK
摘要:mysql> update userinfo set MEDIASOURCE = 'CS02-北京' where IMPORTNO = 'IMP201640613101206';ERROR 1366 (HY000): Incorrect string value: '\x91' for column 阅读全文
posted @ 2018-06-14 22:38 HelonTian 阅读(162) 评论(0) 推荐(0) 编辑
新上线MySQL数据库规划
摘要:新上线MySQL数据库规划1.删除test库2.删除root用户或者让root用户只可在本机登陆而对于有业务访问的数据库,在做删除root用户前需要依次确认 function、procedure、event、view、trigger的definer;有definer为root@%或root@xxx需 阅读全文
posted @ 2018-06-08 11:03 HelonTian 阅读(143) 评论(0) 推荐(0) 编辑
MySQL部分索引
摘要:部分索引 char/varchar2太长,全部做索引的话,效率低,浪费存储空间 select avg(length(username)) from 索引统计: show index from table select * from I_S.STATISTICS mysql.innodb_index_ 阅读全文
posted @ 2018-06-04 23:07 HelonTian 阅读(216) 评论(0) 推荐(0) 编辑
ERROR 1292 (22007): Truncated incorrect DOUBLE value: 'asfsda1'
摘要:mysql> UPDATE financial_sales_order SET ASSIGN_TIME = '2018-05-02 00:00:00' where CUSTOMER_ID=3541535;ERROR 1292 (22007): Truncated incorrect DOUBLE v 阅读全文
posted @ 2018-06-04 18:16 HelonTian 阅读(375) 评论(0) 推荐(0) 编辑
MySQL定义数据库对象之指定definer
摘要:mysql创建view、trigger、function、procedure、event时都会定义一个Definer: SQL SECURITY 有两个选项,一个为DEFINER,一个为INVOKER;SQL SECURITY { DEFINER | INVOKER } :指明谁有权限来执行。DEF 阅读全文
posted @ 2018-06-01 17:30 HelonTian 阅读(404) 评论(0) 推荐(0) 编辑
innobackupex对MySQL做热备份,报错mysql库下数据字典表损坏
摘要:[root@node1 op]#mysql -Vmysql Ver 14.14 Distrib 5.6.29innobackupex热备份MySQL报错,报错信息:[root@node1 op]#innobackupex --defaults-file=/data/mysql/my.cnf --us 阅读全文
posted @ 2018-05-30 17:11 HelonTian 阅读(485) 评论(0) 推荐(0) 编辑
MySQL参数设置
摘要:lc_messages_dir 2018-05-05T13:48:22.481858Z 0 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 1081 error messages, but it sh 阅读全文
posted @ 2018-05-05 22:58 HelonTian 阅读(141) 评论(0) 推荐(0) 编辑
MySQL5.7.21报错:[Err] 1055
摘要:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is  阅读全文
posted @ 2018-04-11 07:16 HelonTian 阅读(138) 评论(0) 推荐(0) 编辑
MySQL中间件之ProxSQL
摘要:ProxSQL介绍 阅读全文
posted @ 2018-04-11 07:10 HelonTian 阅读(169) 评论(0) 推荐(0) 编辑
MySQL中间件之MyCAT
摘要:MyCAT学习 阅读全文
posted @ 2018-04-11 07:10 HelonTian 阅读(77) 评论(0) 推荐(0) 编辑
mysql主从架构,IO、SQL线程运行为YES,从库没有同步数据
摘要:mysql基于binlog主从复制架构,IO、SQL线程运行为YES,从库没有同步数据 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: ht,ht_prod 解决问题: replicate-do-db = ht,ht_pro 阅读全文
posted @ 2018-04-09 17:02 HelonTian 阅读(380) 评论(0) 推荐(0) 编辑
MySQL5.7.21报错:[Err] 1055
摘要:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is  阅读全文
posted @ 2018-04-09 10:39 HelonTian 阅读(124) 评论(0) 推荐(0) 编辑

上一页 1 2 3
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示