Jump to content

Recommended Posts

I did developed a joomla site on test server & while importing the database to new server I am seeing the below error.

 

Can anyone help me on how to fix it ?

 

 

_______________________________________________________________________________________________________

Error

There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:
----BEGIN CUT----
eNo1jUEKwjAURIXu/inmADE00VLMLoTQLtIkJrUeQFwUSnaC3t5UcFaP4TFjUwpJwQgYCWe9goCE
EJTnWjdE0ydfnULHBe/b42Pb6JYTQmbQg/Uzw2KreF8LzJjCZKvZcnmhOGmFc+WO4hh3i4W875y4
6OHW8nqT035QeBb6XVBz+OcLTMwhQQ==
----END CUT----
----BEGIN RAW----
ERROR: C1 C2 LEN: 1 2 11
STR:

MySQL: 5.1.70-cll
USR OS, AGENT, VER: Win CHROME 5.0.29
PMA: 4.0.5
PHP VER,OS: 5.3.17 Linux
LANG: en
SQL:
----END RAW----
 

SQL query:

MySQL said: dot.gif

#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 '' at line 1 

____________________________________________________________________________________________________

Link to comment
https://forums.phpfreaks.com/topic/282437-importing-sql-database/
Share on other sites

Make sure that your dump data is saved into a file with utf8 encoding without BOM!
 
Then, try to run next (assuming the default port is 3306):

mysql --host=DBHOST --user=DBUSER --password=DBPASS --default-character-set=UTF8 --port=3306 < path_to__/dump.sql

Or, import this 'dump.sql' file into an existing database, for instance:

mysql --host=DBHOST --user=DBUSER --password=DBPASS --default-character-set=UTF8 --port=3306 --database=DUMB_DB < path_to__/dump.sql
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.