Amarpreet41 Posted September 25, 2013 Share Posted September 25, 2013 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 ? _______________________________________________________________________________________________________ ErrorThere 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/inmADE00VLMLoTQLtIkJrUeQFwUSnaC3t5UcFaP4TFjUwpJwQgYCWe9goCEEJTnWjdE0ydfnULHBe/b42Pb6JYTQmbQg/Uzw2KreF8LzJjCZKvZcnmhOGmFc+WO4hh3i4W875y46OHW8nqT035QeBb6XVBz+OcLTMwhQQ==----END CUT--------BEGIN RAW----ERROR: C1 C2 LEN: 1 2 11STR: MySQL: 5.1.70-cllUSR OS, AGENT, VER: Win CHROME 5.0.29PMA: 4.0.5PHP VER,OS: 5.3.17 LinuxLANG: enSQL:----END RAW---- SQL query: 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 '' at line 1 ____________________________________________________________________________________________________ Quote Link to comment https://forums.phpfreaks.com/topic/282437-importing-sql-database/ Share on other sites More sharing options...
jazzman1 Posted September 25, 2013 Share Posted September 25, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/282437-importing-sql-database/#findComment-1451214 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.