SQL error

Discussion in 'Computer Gaming Forum' started by ASSEMbler, Feb 8, 2010.

  1. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    Error

    SQL query:
    -- MySQL dump 8.23
    --
    -- Host: localhost Database: databaseRR
    ------------------------------------------------------- --
    -- Server version 3.23.58
    --
    -- Table structure for table `access`
    --
    DROP TABLE IF EXISTS `access` ;


    MySQL said: [​IMG]
    #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 '---------------------------------------------------------
    -- Server version 3.23' at line 1


    any ideas why the database won't import?
     
    Last edited by a moderator: Feb 8, 2010
  2. Hellcat

    Hellcat Robust Member

    Joined:
    Jun 9, 2009
    Messages:
    200
    Likes Received:
    1
    Likely the cmd line is too long, remove all the comments before the CREATE TABLE.

    I had the very same problem when I moved some vB databases from an old 3.x.x MySQL to a new 5.x.x one.
    For me it was already enough to just delete the comments before the first actual SQL statement.
     
  3. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    I can't it's read only...
     
  4. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    I had it skip the first ten lines, so far so good.
     
  5. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    Spoke too soon, still no go. need to port a php 3 database to 5
     
  6. retro

    retro Resigned from mod duty 15 March 2018

    Joined:
    Mar 13, 2004
    Messages:
    10,354
    Likes Received:
    822
    Databases are MySQL, not PHP ;-)

    Come find me on MSN.
     
  7. Hellcat

    Hellcat Robust Member

    Joined:
    Jun 9, 2009
    Messages:
    200
    Likes Received:
    1
    Sounds awefull familiar.... I had to tweak some field settings (mostly lenghts) and "enable" the "can be NULL" manually afterwards for almost all fields....
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page