Title: MySQL Errors on Import
Last modified: August 21, 2016

---

# MySQL Errors on Import

 *  Resolved [tnats98332](https://wordpress.org/support/users/tnats98332/)
 * (@tnats98332)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/mysql-errors-on-import/)
 * I have a brand new VM with CentOS 6 on it and new WP 3.6.
    I yum install mysql,
   php-mysql and httpd. I create a DB, add index.php to httpd.conf and point my 
   browser to it. Install goes great. I try to import a .xml file for theme I bought
   and it goes blank. Even when I just click on the Tools/Import link, I see the
   following errors spit out in my apache error_log file. I cannot seem to figure
   out what is causing this. I have deleted the import plugin so currently I have
   no plugins active. Thanks for any help.
 * [Sat Aug 10 22:59:05 2013] [error] [client <my ip>] WordPress database error 
   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 ” at line 1 for query SELECT
   term_taxonomy_id FROM wp_term_taxonomy WHERE term_id = made by require_once(‘
   wp-admin/admin.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’),
   require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, mytheme_options,
   referer: [http://<my](http://<my) domain>/wp-admin/plugins.php
    [Sat Aug 10 22:
   59:05 2013] [error] [client <my ip>] WordPress database error 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 ‘) AS termid ON termid.object_id = posts.ID\
   n\t\tORDER BY posts.menu_order DESC\n\t\tLI’ at line 7 for query \n\t\tSELECT
   posts.ID\n\t\tFROM wp_posts AS posts\n\t\tINNER JOIN (\n\t\tSELECT object_id\
   n\t\tFROM wp_term_relationships\n\t\tWHERE term_taxonomy_id = \n\t\t) AS termid
   ON termid.object_id = posts.ID\n\t\tORDER BY posts.menu_order DESC\n\t\tLIMIT
   1\n\t\t made by require_once(‘wp-admin/admin.php’), require_once(‘wp-load.php’),
   require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’),
   call_user_func_array, mytheme_options, referer: [http://<my](http://<my) domain
   >/wp-admin/plugins.php

Viewing 1 replies (of 1 total)

 *  Thread Starter [tnats98332](https://wordpress.org/support/users/tnats98332/)
 * (@tnats98332)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/mysql-errors-on-import/#post-4017603)
 * Nevermind on this, it was a theme issue. Had some bad sql in it.

Viewing 1 replies (of 1 total)

The topic ‘MySQL Errors on Import’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 1 participant
 * Last reply from: [tnats98332](https://wordpress.org/support/users/tnats98332/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/mysql-errors-on-import/#post-4017603)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
