Re: Re: Big Problem...Need Help Quick
| From: | Miles Thompson | Date: | Thu, 03 Jan 2002 18:06:21 +0000 |
| Subject: | Re: Re: Big Problem...Need Help Quick | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15338@lists.php.net to get a copy of this message | ||
Kelvin,
Backup is your friend, I hope you have one.
The only way you can implement a rollback is if you use transactions in your code. In general terms it works like this ...
Begin transaction
SQL processing ,etc.If no errors
Commit transactionelse
RollbackEnd transaction Transactions are not implicit except in more feature-rich databases such as PostgreSQL, DB2, MSFT SQL Server, etc., and then only if there is a system crash. When the database is restarted it reads it's system log and reseets itself to the state where the crash occurred. This isn't what you wanted to hear. How did you delete the database? Is it physically deleted from the disk? You may want to look beneath the MySQL ../var directory, in the directory containing your database. If it's there you may be able to rescue the records by some tricky text file maipulation. But that's a question for a MySQL list, not this one. Very best of luck - Miles Thompson At 12:54 PM 1/3/2002 -0500, you wrote:
SomeOne Please Help.... Thanks. Kelvin. "Kelvn" <kelvin_y@decode-ent.com> wrote in message news:20020103162443.63476.qmail@pb1.pair.com... I have deleted the DB by mistake. Please I don't know how to write the rollback statement. I need complete code from you guys. Please Help Quick. ThanksKelvin. ( I used PHP and MYSQL )-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net