Title: restoring database
Last modified: August 19, 2016

---

# restoring database

 *  [davey018](https://wordpress.org/support/users/davey018/)
 * (@davey018)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/restoring-database-4/)
 * I am doing this
 * Moving WordPress to a New Server with Fantastico
 * Some webhosts use a service called Fantastico, which can install a vanilla WordPress
   web with just a few clicks. You can transfer your blog to one of these webs, 
   but the steps are slightly different.
 * Begin by backing up your data. This includes backing up your WordPress database
   as well as all the core files, images, plugins, and other files on your site.
   See WordPress Backups and Backing Up Your Database for more details.
 * Make a copy of your database. You will need to edit the .sql file, and in case
   of errors, it is important that you work on a copy.
 * Begin the process of working from copies of your backups.
 * If you have changed domain, edit the backed up database file to reflect this.
   A simple way to do this is:
    Using a text editor, open a copy of the .sql database
   file. Using the search and replace function, find all instances of the blog’s
   old URL and replace it with the new URL. Repeat the process with your old email
   address. (For example, replacing [someone@example.com](https://wordpress.org/support/topic/restoring-database-4/someone@example.com?output_format=md)
   with [someone@tutorial.com](https://wordpress.org/support/topic/restoring-database-4/someone@tutorial.com?output_format=md))
   Save your changes. Upload your plugins and themes from your old site to the new
   one. Drop (delete) the database tables of the pre-installed Fantastico web. Restore
   the database. When you are ready to check your site, make sure to clear your 
   cache and cookies so you will see the changes in your web browser.
 * I have got error when restoring database from old host zymic to x10hosting
 * Error
    There seems to be an error in your SQL query. The MySQL server error output
   below, if there is any, may also help you in diagnosing the problem
 * ERROR: Unknown Punctuation String @ 5
    STR: :// SQL: [http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;[http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump
    — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16
 * SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;
 * SQL query:
 * [http://shyguy.x10hosting.com/blg&#8211](http://shyguy.x10hosting.com/blg&#8211);
   phpMyAdmin SQL Dump — version 2.11.4 — [http://www.phpmyadmin.net](http://www.phpmyadmin.net)——
   Host: localhost — Generation Time: Jul 14, 2008 at 04:02 PM — Server version:
   5.0.27 — PHP Version: 4.3.10-16 SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;
 * MySQL said:
 * #1064 – You have an error in your SQL syntax; check the manual that corresponds
   to your MySQL server version for the right syntax to use near ‘[http://shyguy.x10hosting.com/blg](http://shyguy.x10hosting.com/blg)
   
   SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”‘ at line 1

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [ldelre](https://wordpress.org/support/users/ldelre/)
 * (@ldelre)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/restoring-database-4/#post-809482)
 * Oh come on, someone has a clue. I’ve checked the manual and I can’t find it. 
   I know it has to do with dis-similar databases, but where is it in the manual?
 *  [mackie123](https://wordpress.org/support/users/mackie123/)
 * (@mackie123)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/restoring-database-4/#post-809483)
 * first of all find out the version of mysql running on your old host versus your
   new host.
 * Im pretty sure you are probably trying to put a new version of mysql coding into
   an older mysql system .
 * you can try opening up your sql file in word pad and do a search on SQL_MODE=”
   NO_AUTO_VALUE_ON_ZERO”; and replace with a space to try to remove all that code
   in one shot, and do this for all errors you encounter. or you can just request
   to your host what version of mysql you will be needing, but if this is a shared
   host account you will prolly not get any help with that.
 * try what i said .. remove the code that is giving you errors

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘restoring database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [mackie123](https://wordpress.org/support/users/mackie123/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/restoring-database-4/#post-809483)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
