Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: How To Restore Database

Submitted by on December 6, 2011 – 8:25 amNo Comment

If you have a backup copy of your database, you can easy use this copy to restore your site workability. In this article I would tell you a few solutions of how to do that.

Using MySQL program (via SSH)

MySQL program is included to the MySQL kit as well as mysqldump. Here are a few steps that will allow you to restore the database:

  • Upload backup file (dump.sql) to the server;
  • Unpack the uploaded file if it was packed;
  • Connect to the server via SSH;
  • Open to a folder with backup file;
  • Run the following command:> mysql -uLOGIN -PPORT -hHOST -pPASS DBNAME < dump.sql

Using Staggered MySQL Dump Importer script

The script does step-by-step import of large and huge MySQL dumps (like phpMyAdmin 2.x Dumps) even through servers with runtime limit and servers which work in safe mode. The script runs a small part of a huge dump and restart itself. The next session begins at a point the previous session ends.

You can find more details about the script here: http://www.ozerov.de/bigdump.php

Summary

You can use MySQL to restore your database if you have SSH-access to the database server. If you have no SSH access, you should use script.

Good luck!

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.