I now have a local copy of a live EE site. Front and backend are working with no problems.

However, when I imported the production database I got this one alert:

[ERROR in query 912] 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

Should I be worried?

These are the first lines in the sql file:

-- phpMyAdmin SQL Dump
-- version 4.0.5
-- http://www.phpmyadmin.net
-- Host: localhost
-- Generation Time: Oct 29, 2013 at 07:18 PM
-- Server version: 5.5.29-MariaDB
-- PHP Version: 5.3.17

SET time_zone = "+00:00";

/*!40101 SET NAMES utf8 */;

Any idea?

  • Not certain but I think you'd have to find the 912th query in the dump... and look at the first line of that query not the first line of the dump...
    – AllInOne
    Oct 31, 2013 at 2:03
  • Mmmh... My knowledge of SQL is not good. How do I actually locate that "query 912", once I imported the database? Oct 31, 2013 at 11:07
  • Again, not certain, but as queries are delimited by semi-colons perhaps you could search for the 912th semi-colon.
    – AllInOne
    Oct 31, 2013 at 15:25
  • For testing purposes, if you export the database from your localhost and then re-import that export does it product the same error? If not, I wouldn't worry about it. Plus, I suggest always exporting you db with "DROP tables syntax" added and gzipped. Oct 31, 2013 at 17:41
  • I followed @stephen-callender advice. I exported the database from my localhost and then re-import it. I didn't get any errors this time. And learning to always exporting my db with "DROP tables syntax" added and gzipped. Thanks Stephen! Having said that... is it resolved? I probably have a data issue remaining there. Nov 1, 2013 at 12:48

1 Answer 1


Sometimes these errors happen because of the connection or application used in exporting the db. I'd recommend using Sequel Pro to export the db with DROP tables syntax and gzipped. If you still see the alert/error, then there's really something wrong.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.