Configuration file updating method and device, electronic equipment and readable storage medium

By regularly detecting and updating database configuration information, the problem of online modification of configuration after database restart is solved, and automatic update of configuration files and timely synchronization of database configuration is achieved.

CN120216478APending Publication Date: 2025-06-27NETSUNION CLEARING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311813383.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

After the database is modified online, the configuration file read when the database is started is not updated, resulting in the configuration modified online after the database is restarted and invalid.

Method used

Gets the configuration information of the target database at a specified time, determines whether the configuration information has changed, and updates the current configuration file when the changes occur to reflect the latest configuration information of the database.

Benefits of technology

It realizes automatic update of configuration files, ensuring that configuration information is read from the latest configuration files when the database is restarted, avoiding the risk of online configuration modification being reset.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216478A_ABST
    Figure CN120216478A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a configuration file updating method and device, electronic equipment and a readable storage medium, and the method comprises the steps: detecting configuration information of a target database every specified time, determining whether the configuration information of the target database is changed or not, and when the determined configuration information of the target database is changed, updating a configuration file according to the configuration information of the target database. And updating the changed configuration information into the current configuration file to obtain an updated configuration file. According to the method, the configuration file can be automatically updated to reflect the change of the configuration information of the target database, so that the configuration information can be read from the updated configuration file when the target database is restarted, and the risk problem caused by resetting the content of the configuration file in online configuration modification is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of database technology, and in particular, to a method, apparatus, electronic device, and readable storage medium for updating a configuration file. Background Art

[0002] As a high-performance and high-security storage service, there are many potential risks in adjusting the configuration of a database. To ensure the stable operation of the database, operation and maintenance engineers are accustomed to using the method of modifying the database configuration online to adjust the relevant parameters of the database. The method of modifying the database configuration online can make the configuration change take effect immediately. However, if the database configuration is modified online without modifying the configuration file read when the database starts, it will cause the configuration modified online to be reset by the content in the original configuration file after the database is restarted, resulting in the invalidation of the online configuration modification. Summary of the Invention

[0003] The purpose of the embodiments of this application is to provide a method, apparatus, electronic device, and readable storage medium for updating a configuration file, aiming to automatically update the configuration file to reflect the changes in the configuration information of the target database, and avoid the online modified configuration being reset by the configuration file content when the database is restarted.

[0004] To solve the above technical problems, the embodiments of this application are implemented as follows:

[0005] In a first aspect, a method for updating a configuration file is proposed. The method is applied to a terminal device and includes: obtaining the configuration information of a target database at specified intervals;

[0006] Determining whether the configuration information of the target database has changed;

[0007] In the case where the configuration information of the target database has changed, updating the changed configuration information to the current configuration file to obtain an updated configuration file.

[0008] In a second aspect, a device for updating a configuration file is proposed, including:

[0009] An obtaining module that obtains the configuration information of a target database at specified intervals;

[0010] A determining module that determines whether the configuration information of the target database has changed;

[0011] An updating module that, in the case where the configuration information of the target database has changed, updates the changed configuration information to the current configuration file to obtain an updated configuration file.

[0012] In a third aspect, an electronic device is proposed, including:

[0013] A processor; and

[0014] A memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the following operations:

[0015] Obtain the configuration information of the target database at specified intervals;

[0016] Determine whether the configuration information of the target database has changed;

[0017] In the case where the configuration information of the target database has changed, update the changed configuration information to the current configuration file to obtain an updated configuration file.

[0018] In a fourth aspect, a computer-readable storage medium is proposed, where the computer-readable storage medium stores one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform the following operations:

[0019] Obtain the configuration information of the target database at specified intervals;

[0020] Determine whether the configuration information of the target database has changed;

[0021] In the case where the configuration information of the target database has changed, update the changed configuration information to the current configuration file to obtain an updated configuration file.

[0022] As can be seen from the technical solutions provided in the embodiments of the present application above, the solutions in the embodiments of the present application at least have the following technical effects:

[0023] By detecting the configuration information of the target database at specified intervals, determining whether the configuration information of the target database has changed, and in the case where the determined configuration information of the target database has changed, backing up the current configuration information, updating the changed configuration information to the current configuration file to obtain an updated configuration file, it is possible to automatically update the configuration file to reflect the changes in the configuration information of the target database, so that when the target database is restarted, it can read the configuration information from the updated configuration file, thus avoiding the risk problem caused by the configuration file content being reset due to online modification of the database configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0025] Figure 1 It is a schematic structural diagram of a computer system provided by one or more embodiments of the present application.

[0026] Figure 2 It is a schematic implementation flowchart of a method for updating a configuration file provided by an embodiment of the present application.

[0027] Figure 3 It is a schematic implementation flowchart of another method for updating a configuration file provided by one or more embodiments of the present application.

[0028] Figure 4 It is a schematic structural diagram of a configuration file update device provided by an embodiment of the present application.

[0029] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0030] To make the objectives, technical solutions, and advantages of this document clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and the corresponding drawings. Apparently, the described embodiments are only a part rather than all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this document.

[0031] The following will detail the technical solutions provided by each embodiment of the present application with reference to the drawings.

[0032] In a modern computer system, the configuration file of a database is used to store the parameters and settings of the database. The configuration file usually contains various configuration options and parameters to ensure the correct operation of the database. Due to changes in the configuration during the operation of the database, it is necessary to update the configuration file in a timely manner to maintain the consistency between the configuration file and the actual configuration of the database. If the operation and maintenance engineer adjusts the configuration of the database but does not modify the configuration file read when the database is started, it will cause the configuration modified online to be reset by the content in the configuration file after the database is restarted, resulting in the invalidation of the online modified configuration.

[0033] For the above reasons, the method for updating a configuration file provided by the embodiments of the present application is executed by a computer device as the execution subject, for example, by at least one of devices such as a server, a laptop, a desktop computer, a tablet computer, or an intelligent robot.

[0034] Figure 1 It is a schematic structural diagram of a computer system provided by one or more embodiments of the present application, and the computer system includes a terminal 120 and a server 140.

[0035] The terminal 120 and the server 140 are interconnected through a wired or wireless network.

[0036] The terminal 120 may include at least one of a smart phone, a laptop computer, a desktop computer, a tablet computer, a smart speaker, and a smart robot.

[0037] The terminal 120 includes a display.

[0038] The terminal 120 includes a first memory and a first processor. A first program is stored in the first memory, and the first program is called and executed by the first processor to implement the configuration file update method provided by the present disclosure. Optionally, the first processor may be used to implement the configuration file update method provided by the present disclosure.

[0039] The server 140 includes a second memory and a second processor. A second program is stored in the second memory, and the second program is called by the second processor to implement the configuration file update method provided by the present disclosure.

[0040] The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected through wired or wireless communication means, and the present disclosure does not limit this.

[0041] For ease of description, in the following, the execution entity of the method is an electronic device capable of executing the configuration file update method. Specifically, the electronic device may be an electronic device such as a server, a laptop computer, a desktop computer, a tablet computer, or a smart robot, such as Figure 1 the terminal or server shown, to introduce the implementation manner of the method. It can be understood that the execution entity of the method being an electronic device is only an exemplary description and should not be construed as a limitation of the method.

[0042] Figure 2 is a schematic flowchart of the implementation of a configuration file update method provided by one or more embodiments of the present application, including:

[0043] S10, obtain the configuration information of the target database at specified intervals.

[0044] Among them, the configuration information of the target database includes at least one of the port number information of the target database, memory configuration information, database read-only status information, and I / O (input / output) parameter information. Of course, it should be understood that the configuration information refers to the currently effective configuration information of the target database.

[0045] Obtain the configuration information of the target database at specified intervals, that is, the system regularly or at a preset time interval obtains the configuration information of the target database. To avoid excessive consumption of system resources, the configuration information of the target database can be obtained once every certain period, for example, 5 minutes, 1 hour, 3 hours, and so on. The specific time interval is not limited.

[0046] Exemplarily, it can be achieved by establishing a connection with the target database and sending a request. The target database can be any type of database, such as a relational database, a NoSQL database, or other types of data storage.

[0047] S20, determine whether the configuration information of the target database has changed.

[0048] When the configuration information of the target database is obtained, the system will parse and analyze the configuration information of the target database to determine whether the configuration options and parameters therein have changed.

[0049] In this step, the configuration information of the target database can be compared with the information stored in the current configuration file to detect whether the configuration information of the target database has changed. If the configuration information of the target database is inconsistent with the current configuration file, the configuration information of the target database has changed.

[0050] S30, when the configuration information of the target database has changed, update the changed configuration information to the current configuration file to obtain an updated configuration file.

[0051] Among them, the configuration file of the target database is used to store the parameters and settings of the target database; the configuration file usually contains various configuration options and parameters to ensure the correct operation of the target database.

[0052] It should be understood that if the configuration information of the target database has changed, the current configuration file will be updated at this time to reflect the latest configuration information of the target database in the current configuration file.

[0053] To better understand the implementation manner of the embodiments of the present application, an embodiment is provided below:

[0054] Assume that the target database is a database of an e-commerce website, which stores configuration information of commodity prices. The system obtains the configuration information of the target database every three hours and compares the configuration information with the information in the current configuration file. After obtaining the configuration of the target database, if it is found that the price of a commodity in the target database has changed, the system will update the new commodity price to the configuration file by updating the corresponding configuration options and parameters in the current configuration file.

[0055] It can be seen that the configuration file updating method of the embodiment of the present application can realize the automatic update of the target database configuration file, and provides a convenient and accurate way to maintain the consistency between the configuration file and the running configuration.

[0056] The technical solution of the embodiment of the present application is described in detail below. Figure 3 , Figure 3 This is a schematic diagram of an implementation flow of another configuration file update method provided by one or more embodiments of the present application, including:

[0057] Step S302: Obtain configuration information of the target database at specified intervals.

[0058] In this step, the specific implementation method of obtaining the configuration information of the target database at specified intervals is consistent with that in step S10. For details, please refer to the description in step S10, which will not be repeated here.

[0059] Step S304, traverse the configuration information of the target database to determine whether the configuration information of the target database has been changed.

[0060] After obtaining the configuration information of the target database, the configuration information of the target database can be parsed and analyzed to determine the configuration options and parameters therein. Then, the configuration information of the target database is traversed and compared with the configuration information stored in the current configuration file to detect whether the configuration information of the target database has changed.

[0061] If the configuration information of the target database is inconsistent with the current configuration file, it means that the configuration information of the target database has been changed, and step S306 is executed; if the configuration information of the target database is consistent with the current configuration file, it means that the configuration information of the target database has not been changed, and step S301 is executed.

[0062] Step S306, reading the current configuration file of the target database.

[0063] Step S308, determining whether the configuration information of the target database has been updated in the current configuration file.

[0064] It is determined whether the configuration information of the target database has been updated in the current configuration file. If the configuration information of the target database has not been updated in the current configuration file, step S310 is executed; if the configuration information of the target database has been updated in the current configuration file, step S301 is executed.

[0065] Step S310, back up the current configuration file.

[0066] In actual applications, the current configuration file can be backed up according to certain rules. For example, the current system time (including year, month, day, hour, minute, second, etc.) can be added to the name of the current configuration file to form the name after the backup. Of course, the specific backup rules can be configured according to the actual situation.

[0067] Step S312: Update the configuration information of the target database in the current configuration file.

[0068] In order to better understand the implementation of the embodiments of the present application, an embodiment is provided below:

[0069] Assume that the target database is a relational database (of course, it can also be a NOSQL database or other type of database), which stores port number information, memory configuration information, database read-only status information, I / O parameter information, etc. At this time, the configuration information of the target database can be obtained every 3 hours, and the configuration information can be compared with the current configuration file. If the port number information of the target database is found to have changed after obtaining the configuration information, the current configuration file will be backed up, and the updated port number information will be updated in the current configuration file to update the configuration file.

[0070] It can be seen that the configuration file updating method of the embodiment of the present application can automatically detect the configuration changes of the target database and update the configuration file after the configuration changes to maintain the consistency between the configuration file and the actual configuration.

[0071] It should be understood that this method has the advantages of being simple and accurate, and can be widely used in various scenarios where it is necessary to maintain consistency between the configuration file and the actual configuration.

[0072] Optionally, in one implementation, after performing the above step S30, the method further includes:

[0073] Record changes to the target database's configuration information;

[0074] A prompt message is sent to the operation and maintenance end of the target database; the prompt message includes information that the configuration information of the target database has been changed.

[0075] It should be understood that the operation and maintenance terminal in the embodiments of the present application generally refers to the personnel responsible for the maintenance of the target database, including but not limited to operation and maintenance engineers. By recording the information of the configuration information change of the target database and sending the corresponding prompt information to the operation and maintenance terminal, the operation and maintenance terminal can timely understand the configuration change situation of the target database, and then record and file the changes of the target database.

[0076] Figure 4 FIG. 4 is a schematic structural diagram of a configuration file update device 400 provided by one or more embodiments of the present application, including:

[0077] An acquisition module 410, which acquires the configuration information of the target database at regular intervals;

[0078] A determination module 420, which determines whether the configuration information of the target database has changed;

[0079] An update module 430, which, when the configuration information of the target database has changed, updates the changed configuration information into the current configuration file to obtain an updated configuration file.

[0080] Optionally, in an implementation manner, the determination module 420 is configured to:

[0081] Traverse the configuration information of the target database, and compare the configuration information of the target database with the information in the current configuration file;

[0082] If the configuration information of the target database is inconsistent with the information in the current configuration file, it is determined that the configuration information of the target database has changed.

[0083] Optionally, in an implementation manner, the update module 430 is further configured to:

[0084] Read the current configuration file of the target database;

[0085] Judge whether the configuration information of the target database has been updated in the current configuration file.

[0086] Further, the update module 430 is configured to:

[0087] When the configuration information of the target database has not been updated in the current configuration file, back up the current configuration file, update the configuration information of the target database in the current configuration file, and replace the current configuration file with the updated configuration file.

[0088] Optionally, in an implementation manner, the acquisition module 410 is further configured to:

[0089] When restarting the target database, read the configuration information of the target database from the updated configuration file.

[0090] Optionally, in one embodiment, the configuration file updating device 400 further includes a sending module 440, configured to:

[0091] Record information indicating that the configuration information of the target database has changed;

[0092] Send a prompt message to the operation and maintenance end of the target database, where the prompt message includes information indicating that the configuration information of the target database has changed.

[0093] Optionally, in one embodiment, the configuration information of the target database includes at least one of port number information, memory configuration information, database read-only status information, and I / O parameter information.

[0094] The configuration file updating device 400 can implement Figure 2 the method of the method embodiment, and for details, reference can be made to Figure 2 the configuration file updating method shown in the embodiment, which will not be elaborated herein.

[0095] Figure 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Please refer to Figure 5 , at the hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory, such as at least one disk memory, etc. Of course, the electronic device may also include other hardware required for other services.

[0096] The processor, network interface, and memory can be interconnected through the internal bus, and the internal bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, Figure 5 only a bidirectional arrow is shown in , but it does not mean that there is only one bus or one type of bus.

[0097] A memory for storing programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0098] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a configuration file update device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0099] Obtain the configuration information of the target database at specified intervals;

[0100] Determine whether the configuration information of the target database has changed;

[0101] In the case where the configuration information of the target database has changed, update the changed configuration information to the current configuration file to obtain an updated configuration file.

[0102] Detect the configuration information of the target database at specified intervals, determine whether the configuration information of the target database has changed, and in the case where the determined configuration information of the target database has changed, back up the current configuration information, update the changed configuration information to the current configuration file to obtain an updated configuration file.

[0103] In the embodiments of the present application, by detecting the configuration information of the target database at specified intervals, determining whether the configuration information of the target database has changed, and in the case where the determined configuration information of the target database has changed, backing up the current configuration information, updating the changed configuration information to the current configuration file to obtain an updated configuration file, it is possible to automatically update the configuration file to reflect the change of the configuration information of the target database, so that when the target database is restarted, it can read the configuration information from the updated configuration file, thereby avoiding the risk problem caused by the configuration file content being reset due to the online modification of the database configuration.

[0104] The above is as described in the present application Figure 4The method executed by the configuration file update device disclosed in the illustrated embodiment can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above method can be completed by the integrated logic circuit in the hardware of the processor or instructions in software form. The above processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.

[0105] The electronic device can also execute Figure 2 the method and implement the functions of the configuration file update device in Figure 2 the illustrated embodiment, which will not be elaborated herein in the embodiments of the present application.

[0106] Of course, in addition to the software implementation, the electronic device of the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.

[0107] The embodiments of the present application also propose a computer-readable storage medium that stores one or more programs. The one or more programs include instructions that, when executed by a portable electronic device including multiple application programs, can enable the portable electronic device to execute Figure 5 the method in the illustrated embodiment and specifically used to perform the following operations:

[0108] Obtain the configuration information of the target database at specified intervals;

[0109] Determine whether the configuration information of the target database has changed;

[0110] In the case where the configuration information of the target database has changed, update the changed configuration information to the current configuration file to obtain an updated configuration file.

[0111] Of course, in addition to the software implementation, the electronic device of the present application does not exclude other implementation manners, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.

[0112] The specific embodiments of the present application have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0113] In summary, the above are only the preferred embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0114] The systems, devices, modules or units illustrated in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0115] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0116] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0117] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A method for updating a configuration file, characterized in that The method includes: Obtaining the configuration information of the target database at specified intervals; Determining whether the configuration information of the target database has changed; In the case where the configuration information of the target database has changed, updating the changed configuration information to the current configuration file to obtain an updated configuration file.

2. The method according to claim 1, wherein Determining whether the configuration information of the target database has changed includes: Traversing the configuration information of the target database and comparing the configuration information of the target database with the information in the current configuration file; If the configuration information of the target database is inconsistent with the information in the current configuration file, it is determined that the configuration information of the target database has changed.

3. The method according to claim 1, wherein Before updating the changed configuration information to the current configuration file to obtain an updated configuration file in the case where the configuration information of the target database has changed, it includes: Reading the current configuration file of the target database; Judging whether the configuration information of the target database has been updated in the current configuration file.

4. The method according to claim 3, wherein It further includes: In the case where the configuration information of the target database has not been updated in the current configuration file, backing up the current configuration file, updating the configuration information of the target database in the current configuration file, and replacing the current configuration file with the updated configuration file.

5. The method according to claim 1, wherein It further includes: When restarting the target database, reading the configuration information of the target database from the updated configuration file.

6. The method according to claim 1, wherein It further includes: Recording the information that the configuration information of the target database has changed; Sending a prompt message to the operation and maintenance end of the target database, where the prompt message contains the information that the configuration information of the target database has changed.

7. The method according to any one of claims 1-6, characterized in that The configuration information of the target database includes at least one of port number information, memory configuration information, database read-only status information, and I / O parameter information.

8. An updating device for a configuration file, comprising: An obtaining module, which obtains the configuration information of the target database at specified intervals; A determining module, which determines whether the configuration information of the target database has changed; An updating module, which updates the changed configuration information to the current configuration file to obtain an updated configuration file in the case where the configuration information of the target database has changed.

9. An electronic device, comprising: A processor; And A memory arranged to store computer-executable instructions, and the executable instructions, when executed, cause the processor to perform the following operations: Obtaining the configuration information of the target database at specified intervals; Determining whether the configuration information of the target database has changed; In the case where the configuration information of the target database has changed, updating the changed configuration information to the current configuration file to obtain an updated configuration file.

10. A computer-readable storage medium, the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device is caused to perform the following operations: Obtaining the configuration information of the target database at specified intervals; Determine whether the configuration information of the target database has changed; In the case where the configuration information of the target database has changed, update the changed configuration information to the current configuration file to obtain an updated configuration file.