The invention discloses a synchronization method of a foreground-background database. The method comprises: the content of a task which is preset and used for completing the synchronization of a foreground-background database is obtained, and the content of the preset task is divided into a plurality of sub-tasks; the sub-tasks are grouped, wherein, each group comprises at least one sub-task; the sub-task in each group is implemented, wherein, the task of each group is implemented in parallel. Therefore, compared with the way that each sub-task is implemented in series in the prior art, the way that each sub-task belonging to different groups is implemented in parallel causes the sub-task in each group to be independent with each other, so the dependency among sub-tasks is reduced, the time needed by the implementation of the sub-task is shortened to a certain extent, and thus the efficiency for a foreground-background database synchronization flow is further improved effectively. The invention simultaneously discloses a server.