How to backup a data base in linux through mysql command ?

 

     If you want to take the backup of a database, follow these steps

      1) Login to your server

      2) Execute the command

          mysqldump -u username -p password databasename > databasename.sql

          where username is the mysql user of that database

                   password is the password for that user

                   databasename is the database which we want to backup.

                   databasename.sql is the name of the backup file or dump file.

            Creates the backup file of the database to the current working directory.

  • 93 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

How to generate an SSH key in linux?

        To generate an ssh key in linux you have to execute the command...

How to install ClamAV antivirus from a source code?

    Download the clamAV source from http://www.clamav.net.The latest version is...

Steps to install BFD(Brute Force Detection). using source code

  BFD Brute Force Detection is a modular shell script for parsing applicable logs and...

How to restore a database through mysql command ?

           If you want to restore a database, you have to follow...

What are dns records?

       DNS records or zone files are used for mapping urls to an ip,...