master

基于云服务器的mysql自建从库

左心房为你撑大大i 提交于 2019-12-21 18:56:44
1、开启从库GTID set global gtid_mode='OFF_PERMISSIVE'; set global gtid_mode='ON_PERMISSIVE'; set global enforce_gtid_consistency=ON; set global gtid_mode='ON' 要永久启用,在my.cnf配置文件中添加参数: gtid-mode=ON enforce-gtid-consistency 2、主库创建同步账户,并赋予 REPLICATION权限 赋权语句: GRANT REPLICATION SLAVE ON . TO '用户名'@'%' identified by '密码'; 3、导出主库数据 mysqldump -h ip -P端口 -uroot -p'密码' --default-character-set=binary --single-transaction --routines --events --triggers --master-data=2 --set-gtid-purged=OFF --all-databases >文件名.sql 4、导入从库 mysql -uroot -p‘密码’ < 文件名.sql 5、从库制定主库 CHANGE MASTER TO MASTER_HOST = '主库IP', MASTER_USER

hbase集群的启动,注意几个问题

女生的网名这么多〃 提交于 2019-12-21 16:41:01
1.hbase的改的会影响器他的组件的使用 故而, 在修改 hadoop的任何组件后, 一定要记得其它的组件也能受到影响, 一下是我在将hadoop的集群改了之后 , 再次运行hbase的时候, 就会发生异常, 原因是在连接namenode的时候,发生连接不到, 就是因为我改了之前的配置,将端口号改了, 没有去将配置文件在hbase中进行更新, 具体问如下: ##我今天起得hbase的集群时候,发生了 1.http://node3:60010/master-status HTTP ERROR 503 Problem accessing /master-status. Reason: Master not ready Powered by Jetty:// 2.http://node3:60030/rs-status The RegionServer is initializing! 在hbase-hadoop-master-node3.log中, 报异常是: 2016-10-12 09:45:04,616 DEBUG [main-EventThread] master.ActiveMasterManager: A master is now available 2016-10-12 09:59:10,484 WARN [master:node3:60000] retry

Master Note for Transportable Tablespaces (TTS) -- Common Questions and Issues (Doc ID 1166564.1)

你离开我真会死。 提交于 2019-12-21 12:14:23
APPLIES TO: Oracle Database Cloud Exadata Service - Version N/A and later Oracle Database Cloud Service - Version N/A and later Oracle Database - Enterprise Edition - Version 9.2.0.1 and later Oracle Database - Standard Edition - Version 9.2.0.1 and later Oracle Database Cloud Schema Service - Version N/A and later Information in this document applies to any platform. PURPOSE This note gives you a single reference point from which to quickly find answers to common questions and issues for Transportable Tablespaces (TTS) from versions 9i through 12c. 本说明为您提供了一个参考点

github简单命令

自作多情 提交于 2019-12-21 09:24:37
1.安装 yum install -y git 2.配置帐户(github.com注册) git config --global user.name goozgk git config --global user.email goozgk@qq.com 3.创建一个新的仓库repo mkdir -p /work/git_repo cd /worl/git_repo git init # 初始化 4.编写程序 vim test.py 5.查看状态 git status [root@localhost git_repo]# git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # test.py nothing added to commit but untracked files present (use "git add" to track) 6.暂存 – git add [root@localhost git_repo]# git add test.py [root@localhost git_repo]# git add -A # if you want to

mysql主从配置

送分小仙女□ 提交于 2019-12-21 09:22:56
mysql主从配置。如下环境测试的:   主数据库所在的操作系统:windows server 2012   主数据库的版本:5.7   主数据库的ip地址:阿里服务器IP   从数据库所在的操作系统:windows server 2012   从数据的版本:5.7   从数据库的ip地址:内网IP 配置步骤: 主服务器:  1、确保主数据库与从数据库一模一样。   2、在主数据库上创建同步账号。      GRANT ALL ON test.* TO 'mstest'@'%' IDENTIFIED BY '123456';    test.*:是针对test数据库里的所有表进行配置  %:是针对所有IP开放,针对某个IP换成固定IP     mstest:是新创建的用户名     123456:是新创建的用户名的密码   3、配置主数据库的my.ini(安装版在C:\ProgramData\MySQL\MySQL Server 5.7)。 在文件末尾添加: #Master Config server-id=1 log-bin=mysql-bin binlog-do-db=test    //要同步的test数据库,要同步多个数据库,就多加几个binlog-do-db=数据库名 binlog-ignore-db=mysql //要忽略的数据库 4、重启主数据库的mysql服务。 5

mysql主从同步

。_饼干妹妹 提交于 2019-12-21 09:21:07
转自:http://369369.blog.51cto.com/319630/790921/ 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。 http://369369.blog.51cto.com/319630/790921 mysql主从复制 (超简单) 怎么安装mysql数据库,这里不说了,只说它的主从复制,步骤如下: 1、主从服务器分别作以下操作 : 1.1、版本一致 1.2、初始化表,并在后台启动mysql 1.3、修改root的密码 2、修改主服务器master: #vi /etc/my.cnf [mysqld] log-bin=mysql-bin //[必须]启用二进制日志 server-id=222 //[必须]服务器唯一ID,默认是1,一般取IP最后一段 3、修改从服务器slave: #vi /etc/my.cnf [mysqld] log-bin=mysql-bin //[不是必须]启用二进制日志 server-id=226 //[必须]服务器唯一ID,默认是1,一般取IP最后一段 4、重启两台服务器的mysql /etc/init.d/mysql restart 5、在主服务器上建立帐户并授权slave: #/usr/local/mysql/bin/mysql -uroot -pmttang mysql

mysql 安装 主从配置

非 Y 不嫁゛ 提交于 2019-12-21 04:23:42
软件下载 下载地址: mysql5.7 下载如下yum包: mysql-community-client-5.7.20-1.el7.x86_64.rpm mysql-community-common-5.7.20-1.el7.x86_64.rpm mysql-community-devel-5.7.20-1.el7.x86_64.rpm mysql-community-libs-5.7.20-1.el7.x86_64.rpm mysql-community-libs-compat-5.7.20-1.el7.x86_64.rpm mysql-community-server-5.7.20-1.el7.x86_64.rpm 安装 安装顺序: rpm -ivh mysql-community-common-5.7.20-1.el7.x86_64.rpm rpm -ivh mysql-community-libs-5.7.20-1.el7.x86_64.rpm rpm -ivh mysql-community-client-5.7.20-1.el7.x86_64.rpm rpm -ivh mysql-community-server-5.7.20-1.el7.x86_64.rpm rpm -ivh mysql-community-libs-compat-5.7.20-1.el7.x86

Git: move changes off of master branch

我与影子孤独终老i 提交于 2019-12-21 03:10:55
问题 Basic question but this happens to me all the time: Make changes in a working-branch Switch to master git merge working-branch git push cap deploy (to staging) make a new cup of tea then I come back and think of something else and start making some changes...while still on master. What's an easy way to either: prevent direct edits on master (warning perhaps) to move all edits over to working-branch and clear master so I can continue editing on working-branch to spin edits into an entirely new

Git遇到的一点错误

荒凉一梦 提交于 2019-12-21 01:38:44
【背景】 折腾: 【记录】将googlecode上面的crifanLib迁移到Github上 期间出错: ​ ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Administrator@PC-20131018OHXV /cygdrive/e/dev_root/git/crifanLib $ git remote add origin https: //github .com /crifan/crifanLib .git Administrator@PC-20131018OHXV /cygdrive/e/dev_root/git/crifanLib $ git remote - v origin https: //github .com /crifan/crifanLib .git (fetch) origin https: //github .com /crifan/crifanLib .git (push) Administrator@PC-20131018OHXV /cygdrive/e/dev_root/git/crifanLib $ git push origin master Username for ' https://github.com ' : Password for ' https://admin@crifan

Git push本地代码到新建远程仓库

主宰稳场 提交于 2019-12-21 01:38:15
快速搞定 1.git init #初始化本地仓库 2.git remote add origin https://git.oschina.net/redArmy/springboot-swagger2.git(或则 git:git的地址) #关联本地仓库到远程仓库 3. git add * #添加要提交的文件到暂存区 4.git commit -m "init commint" #提交代码到文件控制仓库 5.git fetch origin #将 远程主机的更新,全部取回本地 6.git pull origin master 如果报错用这个 git pull origin master --allow-unrelated-histories #拉取远程分支代码到本地 7.git push -u origin master:master #提交本地分支(master)代码到远程分支(master) 正文 来源 http://blog.csdn.net/u011043843/article/details/33336625 1、创建一个新的仓库: 自己传图累死了 借网上图一用 2、在Git bash下创建并初始化本地仓库 3、找到要上传到远程仓库的项目文件,放入到bless目录下面或其子目录下面 .git是git init命令后自动创建的,不用管 4、将远程仓库与本地仓库关联 dwqs