By using mysql dump client program we can take the backup of a particular table from the databases into a file having the extension ‘.sql’. It can be understood with the help of the following example −
Example
In this example, with the help of mysql dump client program, we are taking the backup of a table named ‘student_info’ from ‘query’ database in a file named ‘student_info.sql’. The following command will do this:
C:\mysql\bin>mysqldump -u root query student_info > student_info.sql
The above command will create a file named student_info.sql which has the dump information of a file named ‘student_info’ from database named ‘query’.