How to import database files into MySQL database

Updated on technology 2024-02-26
5 answers
  1. Anonymous users2024-02-06

    Attach a database or import a database.

    SQL itself has data import operations. However, if you want to import data from a backup file, you need to do something else. Let's take an example.

    There is already a DOE database on the SQL server, and there is a large amount of data in it, and now we are ready to import additional data from another backup file that is not the backup file of the DOE database (that is, add some data tables to the DOE after importing, and the data has been recorded in the table), and keep the data of the original DOE unchanged.

    1. First, create a temporary database A1 in SQL Enterprise Manager.

    2. Right-click the A1 database and select: All Tasks Restore Database.

    3. In the Restore Database window, select: From Device.

    4. Click "Select Device".

    5. Click "Add".

    6. Select the database file you want to restore from the file name, such as:

    7. Click "OK" to return to the "Restore Database" window.

    8. Click on the "Options" card to enter the option settings.

    9. Tick the "Force restore on existing database".

    10. Modify "Move to Physical File Name" to: "C: :."

    11. Click OK to import the data in the backup file to the temporary database A1.

    12. At this time, you can import the data from A1 to another database that you really want to import, such as the DOE database.

    The following data import operations are general data import and export operations of SQL 2000 Enterprise Manager. )

    13. Select the DOE database in SQL Enterprise Manager.

    14. Right-click on the DOE database and select: All Tasks Import Data.

    15. In the "Select Data Source" of the DTS Import and Export Wizard window, select the temporary database A1 that you just created and imported data from the data source. Click Next.

    16. In "Select Destination", the system has defaulted to the DOE database.

    17. Click "Next" continuously until it is completed.

    After the above operations, you have successfully imported the data in the backup file into the DOE database, and the original data in the DOE database remains unchanged.

    At this point, you can delete the temporary database A1.

  2. Anonymous users2024-02-05

    Tools Material: Management Studio.

    1. First, on the desktop, click on the "Management Studio" icon.

    2. Then in the interface, select the database you want to import data to.

    3. After that, in the interface, right-click the "Import Data" option in "Tasks".

    4. Then in the interface, enter the name of the server.

    5. Then in the interface, select the database you want to import.

    6. Then in the interface, click the "Next" button.

    7. Secondly, in the interface, select "Copy the data of one or more tables or views".

    8. Continue in the interface and click the "Next" button.

    9. Then in the interface, check "Run Now".

    10. Finally, in the interface, click the "Done" button.

  3. Anonymous users2024-02-04

    Tools Material: Management Studio.

    1. First, on the desktop, click on the "Management Studio" icon.

    2. Then in the interface, select the database you want to import data to.

    3. After that, in the interface, right-click the "Import Data" option in "Tasks".

    4. Then in the interface, enter the name of the server.

    5. Then in the interface, select the database you want to import.

    6. Then in the interface, click the "Next" button.

    7. Secondly, in the interface, select "Copy the data of one or more tables or views".

    8. Continue in the interface and click the "Next" button.

    9. Then in the interface, check "Run Now".

    10. Finally, in the interface, click the "Done" button.

  4. Anonymous users2024-02-03

    1) Open your SQL Server, find the database you want to import data, right-click - Tasks - Import Data.

    2) Select the Excel you want to import as illustrated

    3) Select the database to import to.

    4) Import Excel and select the first item, and the second item is the filtering and copying of the table and the direct content of the table.

    5) Select the source table and source view.

    6) Map the page.

    7) Continue to the next step, click Done, and see the transfer data completion page88) Enter the database refresh, view the table you just imported, and you're done!

  5. Anonymous users2024-02-02

    <><3. If there is a statement to create a database in the content of the SQL file, or you want to store the table in an existing database, you do not need to create a database here.

    <>6. Start importing SQL files, enter "source SQL file path" (note that if the file path is copied, you need to use it.)"\"Replace all with " ".

Related questions
9 answers2024-02-26

You can make an information query system, if you haven't done it before, it is recommended to use ASP to write it first, this is relatively simple, even people who do not have a basic knowledge of network programming can get started in a short period of time. The written web program can be called on the network, and different permissions can be set for different users. In this way, you can achieve the function you want, but this is only the basic, and you should learn more deeply to achieve more complete functions. >>>More

10 answers2024-02-26

The database is generally composed of many tables, for example, the school builds a database, which can build a student table (including the student's name, age, student number, class, date of birth), a teacher table (including the teacher's name, age, teaching class, teaching category), a report sheet (including the student's student number, and the grades of each subject), etc. These are the ways in which the files are stored in the database, and try to make sure that the items in a table are closely related and have the same attributes, if this condition cannot be met, a table must be built (the redundancy of the built table has 4 levels). In order to meet the user's query needs, we also need to make a number of views, for example, you can make a view of his items have the name of the student, age, grades of each subject, and the teacher of each subject, etc., we can also export new items according to the existing items, for the purpose of simplicity, for example, the view can add an average grade, we add different permissions and roles to each view, and provide it to different people to query to protect the security of the database. >>>More

9 answers2024-02-26

Create a database.

Select the Program Management SQL Server 2008 SQL Server Management Studio command in the Start menu to open the SQL Server Management Studio window and establish a connection using Windows or SQL Server authentication. >>>More

7 answers2024-02-26

First: you are lazy and push everything to someone else.

Second: There are no bonus points for your question. >>>More

20 answers2024-02-26

function updatepage(targetobject){if( == 4){

var response = ;Assign the value returned by ajax to the responseIf you want to use this variable, you can call it directly, or you can return it outside of the function. >>>More