上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: ###主从报错信息 Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position' 阅读全文
posted @ 2021-06-29 14:44 whiteY 阅读(2593) 评论(0) 推荐(0)
摘要: ## 1.服务节点规划 ###ZK集群 192.168.10.111(corehadoop13):12181 192.168.10.112(corehadoop13):12181 192.168.10.113(corehadoop13):12181 ##2.jdk环境变量配置(三个节点都配置) 参考 阅读全文
posted @ 2021-06-18 10:36 whiteY 阅读(485) 评论(0) 推荐(0)
摘要: #慢查询日志查询 作为运维人员,磁盘空间也是监控中重要的一个环节,数据库服务器磁盘空间不足告警,有时候不是因为业务数据量大,而是因为开启了慢查询,如果my.cnf文件中log-queries-not-using-indexes = 1,那么慢查询记录的日志中就不完全是慢查询日志,它包含了查询中没有引 阅读全文
posted @ 2021-05-31 14:46 whiteY 阅读(1077) 评论(0) 推荐(0)
摘要: ###查询数据库中的存储过程和函数 select name from mysql.proc where db = 'xx' and type = 'PROCEDURE' //存储过程 select name from mysql.proc where db = 'xx' and type = 'FU 阅读全文
posted @ 2021-05-19 16:02 whiteY 阅读(527) 评论(0) 推荐(0)
摘要: ###查看节点hdfs文件负载 查看各节点hdfs文件使用情况:hdfs dfsadmin -report hdfs dfsadmin -report > balance cat balance | grep "DFS Used%" cat balance | grep "Name" ###负载均衡 阅读全文
posted @ 2021-05-13 15:20 whiteY 阅读(230) 评论(0) 推荐(0)
摘要: ##iptables常用语法 MySQL机器需要进行添加iptables防火墙允许指定ip访问特点端口 ###保存当前iptables配置 iptables-save > /etc/sysconfig/iptables ###3306端口只允许192.168.10.111机器访问 iptables 阅读全文
posted @ 2021-04-28 16:08 whiteY 阅读(123) 评论(0) 推荐(0)
摘要: ##mysql集群监控check_mysql_slave_run.sh sh_path=$(cd $(dirname $0);pwd) cd ${sh_path} port1="3306" param1="mysql服务" echo `date "+%Y-%m-%d %H:%M:%S"` sh ch 阅读全文
posted @ 2021-03-30 15:37 whiteY 阅读(295) 评论(0) 推荐(0)
摘要: ##如何快速修改mysql集群内的同一用户不同IP的用户密码 ###修改方法(直接更新该用户下的密码即可) update mysql.user set authentication_string=password('****') where user='user_name'; flush privi 阅读全文
posted @ 2021-03-30 14:41 whiteY 阅读(239) 评论(0) 推荐(0)
摘要: 今天在进行导库的时候碰到一个 unknown option 错误,导致数据无法导出 经过反复查找问题终于找到了出错的原因: 原来是mysqldump读取mysql安装文件my.cnf里的内容的默认设置,导致命令行无法正常运行,禁用默认设置!在执行mysqldump的时候加入选项--no-defaul 阅读全文
posted @ 2021-03-03 17:31 whiteY 阅读(4314) 评论(0) 推荐(0)
摘要: ###添加用户授权方法一: create user 'user'@'ip' identified by 'password'; grant SELECT on op_db.* to 'user'@'ip' with grant option; flush privileges; create use 阅读全文
posted @ 2020-12-31 10:20 whiteY 阅读(3855) 评论(0) 推荐(2)
上一页 1 ··· 9 10 11 12 13 14 15 下一页