In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
I. Export the data of the main database
Mysqldump-uuser-ppassword-S / tmp/mysql.sock-- single-transaction-- master-data=2-- all-databases-- triggers-- routines-- events > / root/master_dump.sql
Second, create master-slave replication users in the master library
Mysql > grant replication slave on *. * to 'rep'@'%' identified by' rep'
Third, import the data file into the slave library
Mysql > source / root/master_dump.sql
Fourth, find the log application point
Less / root/master_dump.sql
And then execute from the library
Log number checked out by change master to MASTER_HOST=' main library IP',MASTER_USER='rep',MASTER_PASSWORD='rep',MASTER_LOG_FILE='', postition found by MASTER_LOG_POS=
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.