PowerDesigner导入sql脚本生成物理模型
摘要:https://www.cnblogs.com/zsswpb/p/5771623.html
阅读全文
mysql 塞数据
摘要:./mysql_.py -H109.105.4.65 -P32773 -uroot -proot.123 --database=test_database --number=10 sysbench --mysql-db=test_database --mysql-host=109.105.4.65
阅读全文
mysqldump 失败
摘要:ERROR 2006 (HY000) at line 20222: MySQL server has gone away max_allowed_packet = 1M 改大 max_allowed_packet = 32M
阅读全文
mysql主从错误180301
摘要:Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or
阅读全文
mysql 错误集锦
摘要:Got fatal error 1236 from master when reading data from binary log: 'could not find next log; the first event '' at 4, the last event read from './mys
阅读全文
errant-transactions
摘要:https://www.percona.com/blog/2015/12/02/gtid-failover-with-mysqlslavetrx-fix-errant-transactions/ 使用GTID复制时,Errant transactions是一个主要问题。 虽然这不是什么新鲜事,但GT
阅读全文
判断主从延迟
摘要:1)首先看 Relay_Master_Log_File 和 Master_Log_File 是否有差异;2)如果Relay_Master_Log_File 和 Master_Log_File 是一样的话,再来看Exec_Master_Log_Pos 和 Read_Master_Log_Pos 的差异
阅读全文
debian:jessie 安转percona mysql
摘要:dpkg -r percona-server-server-5.6 dpkg -r percona-server-client-5.6 dpkg -r libperconaserverclient18.1 dpkg -r percona-server-common-5.6 dpkg -i perco
阅读全文
xbstream 备份恢复
摘要:xbstream -x < ./backs/backup.xbstream -C /dbnode/data/ innobackupex --defaults-file=/dbnode/etc/my.cnf --ibbackup=xtrabackup --apply-log /dbnode/data/
阅读全文
mysqldump test
摘要:CREATE TABLE IF NOT EXISTS `runoob_tbl`( `runoob_id` INT UNSIGNED AUTO_INCREMENT, `runoob_title` VARCHAR(100) NOT NULL, `runoob_author` VARCHAR(40) NO
阅读全文
MySQL5.7(5.6)GTID环境下恢复从库思(qi)路(yin)方(ji)法(qiao)
摘要:要讨论如何恢复从库,我们得先来了解如下一些概念: GTID_EXECUTED:它是一组包含已经记录在二进制日志文件中的事务集合 GTID_PURGED:它是一组包含已经从二进制日志删除掉的事务集合。 在继续讨论时,我们先来看下如何新建一个基于GTID的slave。 通过了解上面的两个参数,我们现在只
阅读全文
mysql error
摘要:2017-11-16T07:07:51.664585132Z 2017-11-16T07:07:51.664443Z 0 [ERROR] InnoDB: Your database may be corrupt or you may have copied the InnoDB tablespace
阅读全文
drbd mysql
摘要:使用drbd前 升级内核 yum install kernel* 重启 4.1、准备: 两个节点ha-node1和ha-node2均按照centos7.0系统,每个节点两块磁盘,一块用作根分区一块用作drbd 修改主机名: 节点1 节点2 4.2、磁盘分区如下 4.3、创建lvm(每个节点都需执行)
阅读全文
percona xtradb cluster test
摘要:docker run --rm -ti -e CLUSTER_NAME=test -e MYSQL_ALLOW_EMPTY_PASSWORD=1 --entrypoint="bash" -v `pwd`:/test percona/percona-xtradb-cluster:5.6.36 sets
阅读全文
MySQL半同步复制配置
摘要:ansible-playbook -f 3 endpoint/mysql.yml -e "exec=fileConfig" -e "db_action=setAll" -e "paras={'plugin-load':'semisync_master.so;semisync_slave.so',rp
阅读全文
mysql5.7 初始化启动
摘要:root@0f6852dfee81:/# mysql --versionmysql Ver 14.14 Distrib 5.7.18-16, for debian-linux-gnu (x86_64) using 6.3 mysqld --initialize --user=mysql --data
阅读全文
mysqldb
摘要:mysql_config not found ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config 或者 yum install mysql-devel
阅读全文
mysql 用户及赋予权限
摘要:查询用户: use mysql; select host,user from mysql.user; 创建用户: create user 'mhc'@'%' identified by 'mhc.123'; 查看权限: show grants for mhc@'%';
阅读全文
centos7 安装mysql
摘要:wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm yum install mysql-community-client mysql-community-devel
阅读全文