<![CDATA[ How to overwrite corrupted database with backup database using phpMyAdmin? - My Forums]]> https://forums.modx.com/thread/?thread=45135 <![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260208
Please help my friend !
_____________________
vietnam idol]]>
vietnam idol Sep 21, 2010, 04:50 AM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260208
<![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260207

Glad it worked out.
]]>
BobRay Jun 15, 2009, 01:10 PM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260207
<![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260206
Thanks for your great help!

Stefan]]>
Bytesource Jun 15, 2009, 02:01 AM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260206
<![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260205
First, try clearing the site cache and your browser cache and cookies.

If that doesn’t work, what I would probably do next is to delete the TinyMCE plugin in the Manager, clear the site cache, log off, and run the upgrade install again.

If that didn’t work, I’d download a new copy from the repository:

http://modxcms.com/extras/package/?package=459

Then, follow the install instructions there to install it.

Someone else may have a better suggestion.
]]>
BobRay Jun 15, 2009, 12:08 AM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260205
<![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260204 Bytesource Jun 14, 2009, 11:53 PM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260204 <![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260203

You can’t just change that line because you have the wrong TinyMCE plugin code in your database. It probably won’t play nice with the included files.

If you run install again (but be careful to pick "upgrade" wink) I think it will update TinyMCE for you.

]]>
BobRay Jun 14, 2009, 11:46 PM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260203
<![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260202
Thanks for your detailed reply! The database has been indeed overridden. I must have checked this during the upgrade. I do not have another explanation for this.

I then logged into phpMyAdmin, selected the database and imported my database backup file (with DROP TABLE statements) . Now I have my content back! Thank you so much for your help!

There is just one tiny little problem left: When trying to edit a document, an error window pops up telling me the following:
TinyMCE - OnRichTextEditorRegister
Warning: include_once(/var/www/modx/assets/plugins/tinymce3211/...

The new install is using TinyMCE 3241, but here MODx is still looking for the old version.

How does MODx know which version to choose? Is this written in a configuration file? Can I change the name there?

Best regards,

Stefan]]>
Bytesource Jun 14, 2009, 10:28 PM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260202
<![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260201 Quote from: BobRay at Jun 15, 2009, 03:10 AM

First, is it possible that you upgraded to MODx Revolution rather than Evolution?

Before doing anything drastic, go into PhpMyAdmin and make sure the site’s content is really gone. Select the MODx database, select the modx_site_content table and click on the browse icon. If you can still see your content there and there are a number of records, it’s not gone, just not showing for some reason. Stop there and let us know if this is the case.

Unless you checked "new Install" (and it shouldn’t have been checked by default unless you deleted some files before upgrading) MODx shouldn’t have trashed your content--and I’ve never seen it do that.

If the site’s content is really gone, I would first click on Export (still in PhpMyAdmin) and export the whole thing as a SQL file to your local machine (click on save to file), just in case. You can look through that file with a text editor to double check that your site content is gone.

I’m assuming that your back up is a fie with a .SQL extension. If not, stop here and let us know what it is.

While still looking at the current DB, you can click on "select all" to put a check mark next to all tables and then use the bottom drop-down "with all" menu to select drop. Confirm and you will have a completely empty MODx database. Now click on import and browse to your backup. Once it’s imported, you should be back where you were when you backed up.

Hope this helps. Ask if you get stuck or confused. smiley
]]>
BobRay Jun 14, 2009, 10:11 PM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260201
<![CDATA[Re: How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260200
Unless you checked "new Install" (and it shouldn’t have been checked by default unless you deleted some files before upgrading) MODx shouldn’t have trashed your content--and I’ve never seen it do that.

If the site’s content is really gone, I would first click on Export (still in PhpMyAdmin) and export the whole thing as a SQL file to your local machine (click on save to file), just in case. You can look through that file with a text editor to double check that your site content is gone.

I’m assuming that your back up is a fie with a .SQL extension. If not, stop here and let us know what it is.

While still looking at the current DB, you can click on "select all" to put a check mark next to all tables and then use the bottom drop-down "with all" menu to select drop. Confirm and you will have a completely empty MODx database. Now click on import and browse to your backup. Once it’s imported, you should be back where you were when you backed up.

Hope this helps. Ask if you get stuck or confused. smiley]]>
BobRay Jun 14, 2009, 10:10 PM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260200
<![CDATA[How to overwrite corrupted database with backup database using phpMyAdmin?]]> https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260199
I just upgraded to MODx Evolution. Somehow I must have made a mistake because the install overrode my existing database content! I do have a database backup, but I don’t now how to import it to override the wrong content. Both databases have of course the same name and prefix.

I am using phpMyAdmin so I would be very glad if someone could tell my briefly how to accomplish this task. I do not have any clue about MySQL, so an explanation for "dummies" would be fine...

Right now my three months of work is not usable any more.

Looking forward to your reply!

Best regards,

Stefan


]]>
Bytesource Jun 14, 2009, 09:26 PM https://forums.modx.com/thread/45135/how-to-overwrite-corrupted-database-with-backup-database-using-phpmyadmin#dis-post-260199