In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
I. demand analysis
MySQL database has one master and two backups, but it is not in the same partition. The so-called partition means that the data is stored in different storage. The purpose is to prevent data loss caused by storage failure.
II. Solution, data migration
Migrate the data through the preparation of the database, leave the main database unchanged, and do not affect the business.
The steps are as follows:
1. Preparation and downtime shutdown; 2, scp-r transfers database software and data files and database related files such as binlog. 3. Adjust the parameters of the new library and remember two id,server_id and server_uuid, which are stored in my.cnf and auto.cnf files. 4. The new slave library starts mysqld_safe-- defaults-file=/xxx/my.cnf & 5, and starts the synchronization thread start slave; show slave status\ G; there will be a delay here, but the database is not very large, and synchronization may be completed in a few minutes. 6. When the monitoring database is built, you need to configure monitoring, such as zabbix, Prometheus and so on. 7. Some system parameters, firewall, selinux, limits.conf and so on need to be configured in advance.
III. Summary
1. The change of production environment should follow the process and comply with the regulations.
2. To write the implementation plan and test it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.