MySQL mysqldump command usage details mysqldump
BitsCN.com MySQL has many data import methods, but these are only half of the data transmission, and the other is generally to export data from the MySQL database. There are many reasons for exporting data. One important reason is that it is used to back up the database. Data is often expensive and must be processed with caution. Regular backup can help prevent valuable data loss. Another reason is that you may want to export data for sharing. Sharing data becomes more and more common in the ever-growing world of information technology.
For example, Macmillan USA maintains a large database that protects the books to be published. This database is shared among many bookstores so that they know which books will be published soon. Hospitals are increasingly adopting paperless medical records so that these records can follow you at any time. The world is getting smaller and smaller, and information is shared more and more. There are many methods for exporting data, which are similar to importing data. Because, after all, these are just a method of pivoting. The data exported from the database is the data imported from the other end. We will not discuss various data export methods in other databases. you will learn how to use MySQL to export data.
Use mysqldump:
(The mysqldump Command is located in the mysql/bin/directory)
Mysqldump is similar to the opposite tool in many aspects. They have the same options. However, mysqldump can do more. It can load the entire database into a separate text file. This package contains all the SQL commands required to recreate your database. This command gets all the modes (Schema, which is explained later) and converts them into DDL syntax (CREATE statement, that is, database definition statement) to get all the data, create an INSERT statement from the data. This tool reverses all the designs in your database. Because everything is contained in a text file. This text file can be imported back to MySQL using a simple batch processing and a suitable SQL statement. This tool is incredibly simple and fast. There will never be a headache.
Therefore, if you load the contents of the entire database Meet_A_Geek to a file, you can use the following command:
Bin/mysqldump