Results 1 to 2 of 2

Thread: How to take MySQL Backup through SSH Putty

  1. #1
    Join Date
    Apr 2008
    Posts
    438

    How to take MySQL Backup through SSH Putty

    Database is the core of every site. If anyone gets access to your database, the site can face major problems. So here I will show you the best way to take backup of your database. You can do that securely using Putty. Its and free SSH Client that works well and create a secure database backup. It is good to keep the site off for the time being. Putty allow you to have a full backup of your site with all its active content. If the site is active at the time of backup there are chances that some tables will be missed. So the first thing you have to do is close your site for some time. Putty will trigger the backup. The time will depend on the size of your database.

    If you are having a huge site where the database is bigger than 2GB then the backup will be slower. Once you get a confirmation that the backup is over you can then move ahead with your work. Putty is not complicated to use. There are very less commands you have to use to run the backup. The backup is stored in the root directory from where you can download the backup and keep it for future usage. SSH helps you to take core backup with maximum security. No files are modified here and the backup is completely secure. This is just an backup process. Restoration is different.

    Windows Putty setup

  2. #2
    Join Date
    Apr 2008
    Posts
    438

    Re: How to take MySQL Backup through SSH Putty

    Steps to use Putty for full SSH SQL Backup:
    1. First download and install Putty in your system. You can find a version from the official site.
    2. Just run that. Under Hostname you can type the url of the website or its IP address. Leave the port on default or empty.
    3. Then click on Open. The next thing you have to do is type the login details.
    4. That means the user id and password which will provide you access to the MySQL database. It can also be your cpanel details.
    5. There will be a command window in which you will have to type the user id and password. The password will not be visible. Just type it properly.
    6. Now hit enter. For backup type "mysqldump -p -u username database_name > databasebackupname.sql". You have to type this command for backup. Here in place of username type the user that is allowed to access the database. Then under database_name type the database name and at last type the name you want to specify for the backup fie. Hit enter. You can also specific a directly if you want. Or else Putty will create one in the home directory and store the file in that.
    7. Once the backup is generated you can download that through FTP or manually as per your need.

Similar Threads

  1. How to do Backup and recovery in MySQL server?
    By Lalana in forum Software Development
    Replies: 6
    Last Post: 17-12-2010, 04:55 AM
  2. MySQL Backup not working
    By Anish-Mumbai in forum Windows Software
    Replies: 5
    Last Post: 17-06-2010, 05:10 AM
  3. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  4. Backup mysql database
    By jean-paul martell in forum Software Development
    Replies: 3
    Last Post: 31-10-2009, 01:10 PM
  5. Taking Backup of MySql automatically
    By beatnik_abx in forum Software Development
    Replies: 3
    Last Post: 04-06-2009, 02:42 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,675,334,568.98844 seconds with 17 queries