PhpMyadmin Mysql error 1064 when importing file

Discussion in 'MySQL' started by Jeremy LPM, Nov 19, 2008.

  1. #1
    Hello,

    If someone could please help me figure out how to fix an issue I am having in PhpMyAdmin it would be much appreciated.

    I created a database and am trying to import a .bak file up into the database, when I try to do so I get the message listed below which is a little over my head.

    Can anyone help me out please?


    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----
    eNrtTjtOw0AQHRPSbEHBBZgipb3yOvEnS2UFK1iyE8drgkQBIuCAJeMYO0HQUCHRcBVKjsEFOA1r
    00CHRMto3rzRm9HM8+J4GnMcMRwZGHgTjgM0cWDbRCRSB0LEXIo9/5JjfZuX51WdVjTPFrS8LpEx
    k/XR0HVHk2k4yCzObG72TzBPb4bYI+GDmAUcTapTy9by1RU5EjFOhYru2JskKs49+eY4K9D30KY6
    iUKXo0EZo0PKSHQYNRvqVDQ3DGphkBWbexK4kzHHtNA266XmkPZH4kYeQAdeYEeBX8QWPHffX88e
    u7JXWnR+zFU4BdiG3b3Fx9uTEkIGF1DBCmqJJawBQcAMgpZTOblr61fErn/QMH67t/9v8K8GPwHY
    6GS4
    ----END CUT----
    ----BEGIN RAW----

    ERROR: C1 C2 LEN: 4 5 477
    STR:

    SVN: $Id: sqlparser.lib.php 11513 2008-08-28 16:17:53Z lem9 $
    MySQL: 5.0.67-log
    USR OS, AGENT, VER: Win IE 7.0
    PMA: 2.11.9.1
    PHP VER,OS: 5.2.6 Linux
    LANG: en-utf-8
    SQL: TAPE��ͭ_~,^bڵ�Microsoft SQL ServerRAID ;TAPE��ͭ_~,^bڵ�Microsoft SQL ServerRAID ;TAPE��ͭ_~,^bڵ�Microsoft SQL ServerRAID ;----END RAW----


    SQL query:

    TAPE��ͭ_~,^bڵ�Microsoft SQL ServerRAID ;

    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 'TAPE' at line 1
     
    Jeremy LPM, Nov 19, 2008 IP
  2. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Does the user have adequate permission to this database?
     
    maestria, Nov 29, 2008 IP
  3. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #3
    You are trying to import Microsoft SQL Server database into MySQL which is not possible.
     
    mwasif, Nov 29, 2008 IP
  4. pondlife

    pondlife Peon

    Messages:
    898
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    True - have a look at the data you're trying to import (have you created your MySQL tables already?) then standardise the SQL.

    Or you could just remove all the SQL from the file and cust have a CSV file with your data in it - you could then use the MySQL LOAD command to import the data :)

    Good luck!
     
    pondlife, Nov 30, 2008 IP
  5. Jeremy LPM

    Jeremy LPM Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Thank you for everyone’s help,

    I took a second look at the file and did find it to be a MSSQL file which I had overlooked earlier, how can I go about "standardizing" this file so that I can upload it into MySQL, or is there a MS Database Server I can use instead?

    The reason for all of this is that I am in the process of transferring over my website from a Server Hosting Company over to my own server on Dreamhost / PhpMyadmin, they sent me all the files for the website and the database on a CD which is where the MSSQL.bak file is from that I am trying to load. My question is if I convert this file in anyway will I loose any compatibility / ties that has already been established between the website and the database?
     
    Jeremy LPM, Dec 1, 2008 IP