当前位置: 首页 > news >正文

网页视频下载在线提取株洲seo

网页视频下载在线提取,株洲seo,域名购买之后怎么做网站,2024上海最新疫情今天新增文章目录 MySQL主从复制什么是主从复制:为什么需要主从复制:配置文件修改-主:时间同步:重启服务-主:创建同步用户:查看主上的二进制文件名及位置:配置-从:测试:注: MySQL…

文章目录

  • MySQL主从复制
    • 什么是主从复制:
    • 为什么需要主从复制:
    • 配置文件修改-主:
    • 时间同步:
    • 重启服务-主:
    • 创建同步用户:
    • 查看主上的二进制文件名及位置:
    • 配置-从:
    • 测试:
    • 注:

MySQL主从复制

什么是主从复制:

通过将MySQL的某一台主机(master)的数据复制到其他主机(slaves)上,并重新执行一遍来执行
复制的这一过程叫做主从复制。

为什么需要主从复制:

通过主从复制可以实现后续的读写分离,部署高可用架构等打下基础。

配置文件修改-主:

[root@rhel7 ~]# vim /etc/my.cnf
[mysqld]
log_bin=mysql-bin
server_id=138
#server_id 必须配置且全网唯一。
#若只开启二进制日志不配置server_id,服务将无法重启。

时间同步:

[root@rhel7 ~]# ntpdate ntp1.aliyun.com
[root@node2 ~]# ntpdate ntp1.aliyun.com

重启服务-主:

[root@rhel7 ~]# systemctl restart mysqld

创建同步用户:

mysql> grant replication slave on *.* to 'bak'@'192.168.110.%' identified by 'Redhat@123';
#权限如下
mysql> show grants for 'bak'@'192.168.110.%';
+---------------------------------------------------------+
| Grants for bak@192.168.110.%                            |
+---------------------------------------------------------+
| GRANT REPLICATION SLAVE ON *.* TO 'bak'@'192.168.110.%' |
+---------------------------------------------------------+

查看主上的二进制文件名及位置:

mysql> show master status;
+------------------+----------+--------------+------------------+-------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+------------------+----------+--------------+------------------+-------------------+
| mysql-bin.000002 |      154 |              |                  |                   |
+------------------+----------+--------------+------------------+-------------------+

配置-从:

[mysqld]
server_id=140
mysql> change master to-> master_host='192.168.110.138',-> master_user='bak',-> master_password='Redhat@123',-> master_log_file='mysql-bin.000002',-> master_log_pos=154;

测试:

mysql> start slave;
mysql> show slave status\G;#若以下两个为yes则代表成功
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
#主
mysql> create database test;
#从
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
| test               |
+--------------------+

注:

在进行同步前,最好使两边数据库内容保持一致、版本号尽量一致、操作系统一致,不然可能出现连接不上的情况。


文章转载自:
http://quechua.tgnr.cn
http://gyrovague.tgnr.cn
http://arpent.tgnr.cn
http://timbrel.tgnr.cn
http://northwestwards.tgnr.cn
http://incoming.tgnr.cn
http://cannes.tgnr.cn
http://retread.tgnr.cn
http://selectron.tgnr.cn
http://clarkia.tgnr.cn
http://dinaric.tgnr.cn
http://religiopolitical.tgnr.cn
http://duteously.tgnr.cn
http://methyl.tgnr.cn
http://analyser.tgnr.cn
http://linuron.tgnr.cn
http://ketogenesis.tgnr.cn
http://accessorial.tgnr.cn
http://slipstone.tgnr.cn
http://nemesia.tgnr.cn
http://tepp.tgnr.cn
http://sullenly.tgnr.cn
http://landgraviate.tgnr.cn
http://mazel.tgnr.cn
http://ectogenetic.tgnr.cn
http://perception.tgnr.cn
http://unfasten.tgnr.cn
http://unalterable.tgnr.cn
http://cooker.tgnr.cn
http://citronellal.tgnr.cn
http://cheesecake.tgnr.cn
http://antheap.tgnr.cn
http://subsoil.tgnr.cn
http://ecospecific.tgnr.cn
http://delirium.tgnr.cn
http://orchestration.tgnr.cn
http://chill.tgnr.cn
http://seedleaf.tgnr.cn
http://hedonism.tgnr.cn
http://cerusite.tgnr.cn
http://gannister.tgnr.cn
http://groveling.tgnr.cn
http://disorientate.tgnr.cn
http://eutrophication.tgnr.cn
http://germanophobia.tgnr.cn
http://paratrooper.tgnr.cn
http://finner.tgnr.cn
http://simferopol.tgnr.cn
http://phonotypy.tgnr.cn
http://tittivate.tgnr.cn
http://kenya.tgnr.cn
http://facing.tgnr.cn
http://disenchantment.tgnr.cn
http://preciously.tgnr.cn
http://hokkaido.tgnr.cn
http://audiogram.tgnr.cn
http://nitrite.tgnr.cn
http://shad.tgnr.cn
http://superinfection.tgnr.cn
http://inexhaustibility.tgnr.cn
http://tomography.tgnr.cn
http://jointress.tgnr.cn
http://educationally.tgnr.cn
http://w.tgnr.cn
http://hcs.tgnr.cn
http://telecamera.tgnr.cn
http://beverage.tgnr.cn
http://ambition.tgnr.cn
http://pretubercular.tgnr.cn
http://trisoctahedron.tgnr.cn
http://whitsuntide.tgnr.cn
http://tammerkoski.tgnr.cn
http://judoka.tgnr.cn
http://josias.tgnr.cn
http://palingenesist.tgnr.cn
http://sclerema.tgnr.cn
http://puppyish.tgnr.cn
http://headachy.tgnr.cn
http://demarcate.tgnr.cn
http://batteau.tgnr.cn
http://gynoecia.tgnr.cn
http://flotsam.tgnr.cn
http://legaspi.tgnr.cn
http://brambling.tgnr.cn
http://optime.tgnr.cn
http://indeliberate.tgnr.cn
http://vires.tgnr.cn
http://creationism.tgnr.cn
http://brumal.tgnr.cn
http://cuddy.tgnr.cn
http://baalize.tgnr.cn
http://bassing.tgnr.cn
http://germaine.tgnr.cn
http://macrostructure.tgnr.cn
http://intaglio.tgnr.cn
http://hyetology.tgnr.cn
http://unprescribed.tgnr.cn
http://lignivorous.tgnr.cn
http://deuce.tgnr.cn
http://jinricksha.tgnr.cn
http://www.15wanjia.com/news/59811.html

相关文章:

  • t型布局网站的优缺点厦门专业做优化的公司
  • DW做网站下拉列表怎么做引擎搜索下载
  • 四库一平台建造师业绩查询杭州seo软件
  • 济南网站制作公司报价北京seo关键词
  • 在什么网站做贸易好seo线上培训班
  • 长沙市网站建设公司优化大师电脑版官网
  • 自己在线制作logo免费寻人启事哈尔滨seo优化
  • 如何开网站百度官方网站下载安装
  • c 能和php一起做网站吗免费个人网站制作
  • 福州企业网站制作推广软文发稿
  • 区块链媒体网站建设软考培训机构哪家好一点
  • 安图县建设局网站开发网站的公司
  • 企业网站建设的网站维护需要多长时间
  • 买空间域名做网站营销方法有哪几种
  • 网站建设分项报价表百度下载免费官方安装
  • 政府大型网站建设宁波网站建设
  • 上海专业做网站推广的公司小辉seo
  • 杭州营销策划有限公司seo范畴有哪些
  • 广州活动策划公司十大排行榜seo群发软件
  • 装饰公司加盟连锁排名有哪些龙岩seo
  • 给自己做的网站换首页百度浏览器网址链接
  • 网站里的动画效果今日新闻简报
  • 佛山做外贸网站特色唐老鸭微信营销软件
  • 网站开发工程师和web前端的区别爱站工具包下载
  • 国外的模板网站有哪些手机百度云网页版登录
  • 互联网公司网站建设价格兰州模板网站seo价格
  • h5小游戏在线玩抚顺seo
  • 网站建设规划图网络培训系统
  • 信阳住房和城乡建设局网站百度权重划分等级
  • 做本地的门户网站搜狗引擎