7.验证负载均衡
摘要:for i in {1..12}; do mysql -uroot -p123456 -h127.0.0.1 -P6033 -e 'select @@hostname' -s -N; done
阅读全文
6.连接到ProxySQL的管理接口(admin interface)
摘要:该接口的默认管理员用户和密码都是admin,可以在proxysql.cnf配置 admin_variables={ admin_credentials="admin:admin" mysql_ifaces="0.0.0.0:6032"} mysql -uadmin -padmin -P6032 -h
阅读全文
15.centos8 处于紧急状态,需要重新登录
摘要:按CTRL + D,然后直接输入密码(最好是root的密码)。然后enter 修复方法1、修改/etc/fstab,将待修复的分区先注释掉2、重启主机3、重复执行xfs_repair命令,必要时可使用-L选项 或者 执行fsck(ext文件)4、修改/etc/fstab,恢复被修复的分区5、重启主机
阅读全文
5.mysql8.0以上版本,ProxySQL 监控/连接账户,要以 mysql_native_password 形式创建,否则会连接拒绝
摘要:CREATE USER 'monitor'@'%' IDENTIFIED BY '123456';grant all privileges on *.* to 'monitor'@'%' with grant option;flush privileges; CREATE USER 'monitor
阅读全文
13.centos8 关闭防火墙和selinux或者防火墙开启指定端口
摘要:1.firewalld 查看防火墙状态 systemctl status firewalld 关闭防火墙 systemctl stop firewalld 开机自启关闭 systemctl disable firewalld 开启防火墙 systemctl start firewalld 开放指定端
阅读全文
12.centos8更改yum源为阿里
摘要:https://help.aliyun.com/zh/ecs/user-guide/change-centos-8-repository-addresses?spm=a2c4g.11186623.0.0.a65cad75ZzQ9Zw centos8(centos8官方源已下线,建议切换centos-
阅读全文
11.centos8 静态ip快速
摘要:vim /etc/sysconfig/network-scripts/ifcfg-网卡名称BOOTPROTO=staticONBOOT=yes# 设置ip地址DEVICE=网卡名称BOOTPROTO=staticIPADDR=静态IP地址NETMASK=子网掩码GATEWAY=网关地址DNS1=DN
阅读全文