摘要:
https://www.cnblogs.com/52php/p/5660120.html 阅读全文
摘要:
Pre环境有个MySQL不能进行数据写入操作,关闭实例也非常慢,最后error报错。 最后发现是磁盘不能进行写操作。 touch /data/testtouch: cannot touch ‘/data/test’: Read-only file system 对/data分区进行重新挂载操作后能正 阅读全文
摘要:
Error: MaxScale cannot be run as root.Failed to write child process message!解决办法:# maxscale -f /etc/maxscale.cnf -U maxscale 指定启动的用户 在CentOS7中安装maxsca 阅读全文
摘要:
(1) Last_Errno: 1782 Last_Error: Error executing row event: '@@SESSION.GTID_NEXT cannot be set to ANONYMOUS when @@GLOBAL.GTID_MODE = ON.' >stop slave 阅读全文
摘要:
把一个很长的一行按空格分为多行 :%s/ +/\r/g简单解释一下:%s :在整个文件范围查找替换/ :分隔符+ :匹配空格,其中“ ”表示空格,+表示重复1次或多次,加在一起表示一个或多个空格。/r :换行符/g :全局替换 删除文章中的空行:g/^s*$/d简单解释一下:g :全区命令/ :分隔 阅读全文
摘要:
在Linux中,cat -A file可以把文件中的所有可见的和不可见的字符都显示出来,在Vim中,如何将不可见字符也显示出来呢?当然,如果只是想在Vim中查看的话,可以这样:%!cat -A在Vim中调用cat转换显示。这样的做法不便于编辑,其实Vim本身是可以设置显示不可见字符的。 只需要:se 阅读全文
摘要:
Atlas MySQL 读写分离 [root@localhost ~]# /usr/local/mysql-proxy/bin/mysql-proxy test start2019-05-07 10:13:03: (critical) chassis-frontend.c:122: Failed t 阅读全文
摘要:
Zabbix MySQL percona服务端执行以下操作https://www.zabbix.com/download?zabbix=4.0&os_distribution=centos&os_version=7&db=mysql1、安装zabbix yum源#rpm -Uvh https://r 阅读全文
摘要:
linux shell脚本中的延时 linux shell脚本中的延时 还是使用 sleep 或usleep函数。 详细如下: 1、sleep : 默认为秒。sleep 1s 表示延迟一秒 sleep 1m 表示延迟一分钟 sleep 1h 表示延迟一小时 sleep 1d 表示延迟一天 2、usl 阅读全文
摘要:
错误Threads_running=58 exceeds its critical threshold 50 #pt-online-schema-change --user=root --password= e835 --alter='ENGINE=InnoDB' --socket=/data/db 阅读全文