随笔分类 - Mysql
摘要:试图修改max_allowed_packet 参数大小,无效。 在mysqldump 出文件的开头添加了以下文本,恢复成功,source 不报错。 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 S
阅读全文
摘要:error:Found option without preceding group in config file : /etc/my5730.cnf at line 1 Fatal error in defaults handling .Program aborted 原因 my5730.cnf
阅读全文
摘要:1、启动mha: [root@pxc2 ~]# masterha_manager --conf=/opt/mha/conf/mha.cnf Mon Jun 29 00:29:03 2020 - [warning] Global configuration file /etc/masterha_def
阅读全文
摘要:1 Mysql mha简介 MHA (Master Hight Availability) 是目前在Mysql高可用方面一个相对成熟的解决方案,也是在Mysql高可用环境下故障切换和主从提升的常用软件。在Mysql 故障切换过程中,MHA 能极短时间内自动完成数据库的故障切换操作。 MHA软件由两部
阅读全文
摘要:[root@pxc2 ~]# cat /root/master_ip_failover #!/usr/bin/env perl use strict;use warnings FATAL => 'all'; use Getopt::Long; my ( $command, $ssh_user, $o
阅读全文
摘要:mysql> stop slave ;Query OK, 0 rows affected (0.00 sec) mysql> start slave ;Query OK, 0 rows affected (0.05 sec) mysql> show slave status \G;*********
阅读全文
摘要:mysql> SELECT t.table_schema, t.table_name FROM information_schema.tables t LEFT JOIN information_schema.columns c ON t.table_schema = c.table_schema
阅读全文
摘要:下载ssl101的安装包上传服务器对应安装目录/usr/local 目录。 [root@localhost ~]# yum -y install openssl openssl-devel perl-Time-HiRes perl-DBD-MySQL.x86_64 perl-IO-Socket-SS
阅读全文
摘要:日志之前一直有报错:[ERROR] Too many arguments (first extra is 'bootstrap-pxc'). 删除临时文件 rm -rf /var/lock/subsys/mysql rm -rf /data/mysql/mysqld.pid 依然报错。。。。。
阅读全文
摘要:[root@weblogic local]# /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/data/mysql -initialize2020-03-05T
阅读全文
摘要:show status like '%max_connections%'; ##mysql最大连接数 set global max_connections=1000 ##重新设置 show variables like '%max_connections%'; ##查询数据库当前设置的最大连接数 s
阅读全文
摘要:#find / -name mysql.sock /home/data/mysql/mysql.sock 建立软链接: # ln -s /home/data/mysql/mysql.sock /tmp/mysql.sock
阅读全文
摘要:systemctl is-enabled iptables.servicesystemctl is-enabled servicename.service #查询服务是否开机启动systemctl enable *.service #开机运行服务systemctl disable *.service
阅读全文
摘要:# mysql -uroot -pEnter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 根据my.cnf [mysqld]port=23
阅读全文
摘要:1 Mgr安装配置 安装前环境准备: IP 端口 路径 Server-id 组复制端口 主机名 操作系统 192.168.56.131(主) 23306 /usr/local/ 131 23356 mysql Centos6.5 192.168.56.130(主) 23306 /usr/local/
阅读全文
摘要:1)跳过授权表 # /usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf --skip-grant-tables 2)免密登录 [root@mysql ~]# mysql -uroot -pEnter password: Welco
阅读全文