最新ubuntu12+mysql5.5主从数据库配置详解(读写分离)(The latest ubuntu12+mysql5.5 master-slave database configuration detailed (read and write separation)).docVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
最新ubuntu12mysql5.5主从数据库配置详解(读写分离)(Thelatestubuntu12mysql5.5master-slavedatabaseconfigurationdetailed(readandwriteseparation))
最新ubuntu12+mysql5.5主从数据库配置详解(读写分离)(The latest ubuntu12+mysql5.5 master-slave database configuration detailed (read and write separation))
Configuration environment: ubuntu12 + mysql5.5
Master library IP:172.28.14.109
From library IP:172.28.14.85
********************************************** started *********************************************** configuration
1, the main library configuration:
A, which enables data users to synchronize from libraries
Mysql GRANT REPLICATION SLAVE ON toslavedb@172.28.14.85identified by123456;
Mysql FLUSH PRIVILEGES;
B, modify the MySQL configuration file: VI /etc/my.cnf (before backing up a copy). You need to modify the following items
Server-id = 1 # set server-id to 1,1 server said
Log_bin = /var/log/mysql/mysql-bin.log (removes the comment from the default configuration file, which must be configured)
Binlog-do-db= # need to synchronize the database, all libraries are synchronized can not fill
Binlog-ignore-db= # does not need to synchronize the database, all libraries can not fill synchronization
(Note: bind-address defaults that 127.0.0.1 needs to comment on this item, otherwise Slave will not be able to link to Master (otherwise it cant be accessed remotely)
C, check the status of the main server, record red font, and configure the backup from the server (see after the restart MySQL service)
Mysql show master status;
+------------------+----------+--------------+------------------+
File Position Binlog_Do_DB | | | | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000006 | 107 | | MySQL |
+------------------+----------+--------------+------------------+
If the following is shown, the configuration is incorrect
Mysql SHOW MASTER STATUS;
Empty set (0.02, SEC)
The main library is configured ***************************************** *****************************************
2, from the library configuration:
A, modify the MySQL configuration file: VI /etc/my.cnf (before backing up a
您可能关注的文档
- 导游词瓷器口(Guide word porcelain mouth).doc
- 导游词范文(Tourist guide).doc
- 导游资格考试-导游基础练习(Tour guide qualification examination - basic training for tour guides).doc
- 室内材料(Interior material).doc
- 导电银油(Conductive silver oil).doc
- 对循环阅读批评方式的尝试———重演《三国演义》(An attempt at the critical way of circular reading -- repeating the romance of the Three Kingdoms).doc
- 导电高分子论文(Conductive polymer papers).doc
- 导线颜色代号(Wire color code).doc
- 尊敬的用户,您好!(Dear users, hello!).doc
- 尹定邦 重点(Yin Dingbang key).doc
- 最新全部科目解释(The latest all subjects explanation).doc
- 最新公务员报考专业分类(The latest civil service for professional classification).doc
- 最新发布linux指令大全总汇详解完整珍藏版-9(The latest issue of Linux instruction Daquan confluence detailed complete collection version -9).doc
- 最不靠谱的十大新生儿护理方法(The ten most unreliable methods of neonatal care).doc
- 最新建筑单位各部门工作职责(Responsibilities of all departments in the latest construction units).doc
- 最新整理的ce改法大全(The latest revised CE Encyclopedia).doc
- 最新文秘专业职业规划范例(Examples of career planning in the latest secretarial profession).doc
- 最新的新闻评论372(The latest news review 372).doc
- 最新石化安全管理及国家强制性条文实施手册(Handbook of implementation of the latest Petrochemical Safety Management and national mandatory provisions).doc
- 最新哈尔滨旅游攻略(The latest Harbin travel strategy).doc
最近下载
- 国际贸易实务(第三版)课件 项目四 核算出口报价.pptx VIP
- 遗体识别 五级技能《遗体防腐技术》教学课件.pptx VIP
- (2024新版本)人教版七年级上册生物全册教案.doc
- 高血压患者饮食健康宣教ppt.pptx VIP
- 合规审计员考试试卷及答案.docx VIP
- 建筑设备安装工程识图与施工工艺【共114张精品课件】.pptx VIP
- 2025杭州市滨江区国有企业招聘16人考试备考试题及答案解析.docx VIP
- 纠正遗体体位姿势《遗体防腐技术》教学课件.pptx VIP
- 小学六年级心理健康教育教案:培养健康心理素质.docx VIP
- 遗体防腐整容之遗体消毒——选择使用消毒剂.pptx VIP
文档评论(0)