
Syntax of dumping complete mysql server are:

> nameOfBackupFile.sql Dumping Complete MySql Server Mysqldump name_of_database > nameOfBackupFile.sqlĭumping one or more of the selected databases: However, the syntax for each of them differs and is mentioned below –ĭumping one or more of the selected tables: All three functionalities can be used by using the mysqldump command. We can create the backup by dumping one or more of the selected tables or by dumping a set of one or more databases or we can dump the entire MySQL server that will contain all databases and tables in it along with other objects.

This ALTER command may result in the database collation changes and hence it is required to have ALTER privilege. The ALTER statements may be present in the dumped file sometimes when stored programs are dumped for encoded character preservations. Similarly, while reloading or restoring the dumped data, we must possess the privilege such as CREATE, INSERT, and ALTER privilege that might be present in your dumped flat file that will be executed.

If we are backing up the database that contains tables then you should have select privilege, for views it is necessary to have SHOW VIEW privilege, for triggers TRIGGER privilege and if we use –single-transaction option while dumping the database then LOCK TABLES privilege should be there with us. It depends on the content that we are backing up. There are certain privileges on the tables, views, triggers, and transactions that we should have to use the mysqldump utility. Hadoop, Data Science, Statistics & others Pre-requisites
