• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  mysql

1 2 下一页

mysql study
 
PowerDesigner导入sql脚本生成物理模型
摘要:https://www.cnblogs.com/zsswpb/p/5771623.html 阅读全文
posted @ 2018-11-12 17:06 会飞の鱼 阅读(415) 评论(0) 推荐(0)
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 阅读全文
posted @ 2018-03-26 14:46 会飞の鱼 阅读(128) 评论(0) 推荐(0)
mysqldump 失败
摘要:ERROR 2006 (HY000) at line 20222: MySQL server has gone away max_allowed_packet = 1M 改大 max_allowed_packet = 32M 阅读全文
posted @ 2018-03-19 16:30 会飞の鱼 阅读(164) 评论(0) 推荐(0)
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 阅读全文
posted @ 2018-03-02 09:48 会飞の鱼 阅读(117) 评论(0) 推荐(0)
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 阅读全文
posted @ 2018-01-22 10:57 会飞の鱼 阅读(219) 评论(0) 推荐(0)
errant-transactions
摘要:https://www.percona.com/blog/2015/12/02/gtid-failover-with-mysqlslavetrx-fix-errant-transactions/ 使用GTID复制时,Errant transactions是一个主要问题。 虽然这不是什么新鲜事,但GT 阅读全文
posted @ 2018-01-05 18:47 会飞の鱼 阅读(522) 评论(0) 推荐(0)
判断主从延迟
摘要:1)首先看 Relay_Master_Log_File 和 Master_Log_File 是否有差异;2)如果Relay_Master_Log_File 和 Master_Log_File 是一样的话,再来看Exec_Master_Log_Pos 和 Read_Master_Log_Pos 的差异 阅读全文
posted @ 2017-12-18 13:30 会飞の鱼 阅读(228) 评论(0) 推荐(0)
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 阅读全文
posted @ 2017-12-07 16:19 会飞の鱼 阅读(163) 评论(0) 推荐(0)
xbstream 备份恢复
摘要:xbstream -x < ./backs/backup.xbstream -C /dbnode/data/ innobackupex --defaults-file=/dbnode/etc/my.cnf --ibbackup=xtrabackup --apply-log /dbnode/data/ 阅读全文
posted @ 2017-11-30 17:28 会飞の鱼 阅读(4579) 评论(0) 推荐(0)
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 阅读全文
posted @ 2017-11-27 11:54 会飞の鱼 阅读(304) 评论(0) 推荐(0)
MySQL5.7(5.6)GTID环境下恢复从库思(qi)路(yin)方(ji)法(qiao)
摘要:要讨论如何恢复从库,我们得先来了解如下一些概念: GTID_EXECUTED:它是一组包含已经记录在二进制日志文件中的事务集合 GTID_PURGED:它是一组包含已经从二进制日志删除掉的事务集合。 在继续讨论时,我们先来看下如何新建一个基于GTID的slave。 通过了解上面的两个参数,我们现在只 阅读全文
posted @ 2017-11-16 19:16 会飞の鱼 阅读(311) 评论(0) 推荐(0)
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 阅读全文
posted @ 2017-11-16 19:14 会飞の鱼 阅读(760) 评论(0) 推荐(0)
drbd mysql
摘要:使用drbd前 升级内核 yum install kernel* 重启 4.1、准备: 两个节点ha-node1和ha-node2均按照centos7.0系统,每个节点两块磁盘,一块用作根分区一块用作drbd 修改主机名: 节点1 节点2 4.2、磁盘分区如下 4.3、创建lvm(每个节点都需执行) 阅读全文
posted @ 2017-11-05 22:31 会飞の鱼 阅读(699) 评论(0) 推荐(0)
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 阅读全文
posted @ 2017-10-24 14:18 会飞の鱼 阅读(200) 评论(0) 推荐(0)
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 阅读全文
posted @ 2017-09-28 11:54 会飞の鱼 阅读(524) 评论(0) 推荐(0)
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 阅读全文
posted @ 2017-09-26 10:26 会飞の鱼 阅读(425) 评论(0) 推荐(0)
mysqldb
摘要:mysql_config not found ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config 或者 yum install mysql-devel 阅读全文
posted @ 2017-09-15 22:51 会飞の鱼 阅读(108) 评论(0) 推荐(0)
mysql 备份
摘要:qwe 阅读全文
posted @ 2017-07-21 17:32 会飞の鱼 阅读(101) 评论(0) 推荐(0)
mysql 用户及赋予权限
摘要:查询用户: use mysql; select host,user from mysql.user; 创建用户: create user 'mhc'@'%' identified by 'mhc.123'; 查看权限: show grants for mhc@'%'; 阅读全文
posted @ 2017-07-03 13:07 会飞の鱼 阅读(153) 评论(0) 推荐(0)
centos7 安装mysql
摘要:wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm yum install mysql-community-client mysql-community-devel 阅读全文
posted @ 2017-06-27 10:59 会飞の鱼 阅读(141) 评论(0) 推荐(0)
 

1 2 下一页