Patent attributes
A master-slave architecture deployment method based on snapshot includes: restoring a core library corresponding to a MySQL database at any point in snapshot time, where the core library is a virtual library of the MySQL database; querying out at least one piece of configuration information necessary for master-slave configuration of the MySQL database by using the core library as baseline; taking a snapshot on the core library by using a snapshot technology; creating and cloning at least one copy library corresponding to the core library respectively based on the snapshot and the at least one piece of configuration information necessary for master-slave configuration; and configuring a master-slave relationship and a master library and a slave library corresponding to the master-slave relationship for the core library and the at least one copy library. A master-slave architecture deployment device based on snapshot is further provided.