Home Register Members List Search Today's Posts Mark Forums Read

Go Back   TechFuels Forum > Hardware > CPU & Components

Reply
 
LinkBack Thread Tools
aldrin
Senior Member
 

aldrin is offline  
Old 01-20-2009, 11:13 AM
  #1 (permalink)
Performing Restore

If for some reasons the database gets corrupted or gets lost, one can restore the database from the backup file. The syntax for command to restore database to a previous state is:

The image_file_name is the arguŽment where location and name are of the backed up file that was made using BACKUP DATABASE command. Using RESTORE command, whatever that was backed up using BACKUP DATABASE command will get restored to the state when backup was performed. The user who performs the restoring of the database must have the CREATE or equivalent rights to perform the task.

As backup tasks can be done online, restore cannot be done online as, RESTORE is classified under DDL stateŽment because it alters the structure of database. Thus "Online Restore" is not possible as during restore some table locks will be caused so that the data could be written to the tables from the backup file.

To restore the "world" database, we first changed the database workspace and then dropped the database by using following command:

Name:  Performing Restore.jpg
Views: 11
Size:  38.9 KB

As we have saved the backup of the "world" database in location in C drive as "world-db. backup" , we will pass this as argument to the RESTORE command as follows:

We have used this online backup utility for databases using MyISAM storage engines. Even if the database has multiple storage engines for different tables, the backup can be performed. Suppose, if there is just one table of InnoDB type, then while performing baCKUp, the MyISAM tables will be backed up in native format while the table in InnoDB type will be backed up in logically-based backup format.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Performing backups aldrin CPU & Components 0 01-20-2009 11:08 AM
Laptop Not performing Well uretech987 Hard Disk 1 12-01-2008 05:48 AM
Restori ng System to Restore Point Restoring System to Restore Point Cadmus4778 Windows XP 0 11-26-2008 11:55 AM
Making Restore Points using System Restore Wizard Cadmus4778 Windows XP 0 11-26-2008 11:44 AM
Performing Mouse Actions jack879 CPU & Components 0 11-18-2008 06:08 AM


All times are GMT +1. The time now is 07:31 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright Techfuels -->
SEO by SubmitEdge


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148