- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Mysql多主一从配置(外国英语资料)
Mysql多主一从配置
Take two masters one for one as an example,
The two master MySQL Server is configured as normal, and the only thing to note is that the ports need to be aligned with the ports that correspond to the database configuration from the server
Modify the /etc/my.cnf document
Change port=3306 to port=3307 or port accordingly
The MySQL compilation and installation standards process is as follows
Install MySQL
This article uses the binary installation method, the basic order and the MySQL official order is similar, only some places do some explanation.
Shell groupadd MySQL
Shell, useradd, -g, mysql, MySQL
Shell CD /usr/local
Shell tar -xvzf /path/to/mysql-VERSION-OS.tar.gz
Shell MKDIR /usr/local/mysql
Shell, CP, -rf, /path/to/mysql-VERSION-OS, /usr/local/mysql
Shell CD /usr/local/mysql
Shell, chown, -R, MySQL
Shell, chgrp, -R, MySQL
Shell scripts/mysql_install_db --user=mysql
Shell, chown, -R, root
Shell, chown, -R, mysql, data
Shell, bin/mysqld_safe, --user=mysql
The first few steps are generally not a problem, but the last step is to execute bin/mysqld_safe --user=mysql the system went wrong:
Starting, mysqld, daemon, with, databases, from, /var/lib/mysql
STOPPING, server, from, PID, file, /var/run/mysqld/mysqld.pid
090930 12:19:32 mysqld ended
And then its over, the reason for this problem, we can see in the log file /var/log/mysqld.log
090930 12:19:31 mysqld started
090930, 12:19:31, [Warning], option,thread_stack: unsigned, value, 126976, adjusted, to, 131072
090930 12:19:32 InnoDB: Started; log sequence number 043655
090930, 12:19:32, [ERROR], /usr/local/mysql/bin/mysqld:, Cant, create/write, to, file,/var/run/mysqld/mysqld.pid(Errcode:, 2)
The 12:19:32 [ERROR] Cant start server: cant create PID file: No such or file directory
090930 12:19:32 mysqld ended
It is not right, there are two solutions, one is to build a MySQL have permission to read and write the /var/run/mysqld/ folder; another way, we can use /usr/local/mysql/support-files/mysql.server to sta
您可能关注的文档
最近下载
- 餐饮连锁新店选址评估表.xlsx VIP
- 第节特种陶瓷粉体制备方法特种陶瓷粉体制备方法.PDF VIP
- 幼儿园大班数学《10以内的加减法》PPT课件.pptx VIP
- 【课件】免疫与免疫规划+第二课时+免疫的功能与免疫规划课件人教版生物八年级上册.pptx VIP
- GBT50417-2017 煤矿井下供配电设计规范.docx VIP
- 2024-2025学年酒泉市金塔县重点中学小升初数学入学考试卷含解析.doc VIP
- 飞机维护模拟训练系统.doc VIP
- DBJ51/168-2021四川省住宅设计标准.docx VIP
- [泰州]江苏泰州泰兴现代农业产业园区招聘员额制工作人员10人笔试历年典型考点(频考版试卷)附带答案详.docx VIP
- DB61_T 5079-2023 城市轨道交通工程沿线土遗址振动控制与监测标准.docx
文档评论(0)