Announcement

Collapse
No announcement yet.

How to take backup of single table in MySQL Db using MySQLdump

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to take backup of single table in MySQL Db using MySQLdump

    How to take backup of single table in MySQL Db by using MySQLdump?
    and how to restore it?

  • #2
    Hello Moriana,

    Backing up a table in MySQL
    Code:
    mysqldump -u -p databasename tablename > tablename.sql
    Example : mysqldump psa BackupsScheduled > BackupsScheduled.sql -u admin -p`cat /etc/psa/.psa.shadow`

    Restoring table from MySQL
    Code:
    mysql -u -p databasename < tablename.sql
    Example : mysql psa < BackupsScheduled.sql -u admin -p`cat /etc/psa/.psa.shadow`

    Comment

    Working...
    X