Upgrading a database

Discussion in 'MySQL' started by cb711, May 11, 2006.

  1. #1
    I recently purcased a website and it has a database phpMyAdmin 2.6.4-pl2 and my host has phpMyAdmin 2.8.0.2. I am trying to move it and I get an error saying

    Error
    SQL query:

    -- phpMyAdmin SQL Dump
    -- version 2.6.4-pl2
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: May 11, 2006 at 11:47 PM
    -- Server version: 4.1.19
    -- PHP Version: 4.3.11
    --
    -- Database: `kjnetwor_directory`
    --
    -- --------------------------------------------------------
    --
    -- Table structure for table `admin`
    --
    CREATE TABLE `admin` (

    `id` int( 11 ) NOT NULL AUTO_INCREMENT ,
    `username` varchar( 30 ) NOT NULL default '',
    `password` varchar( 30 ) NOT NULL default '',
    `name` varchar( 40 ) NOT NULL default '',
    PRIMARY KEY ( `id` )
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =2;



    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 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=2' at line 7

    Can you help me?
     
    cb711, May 11, 2006 IP
  2. HenrikAI

    HenrikAI Peon

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try without "DEFAULT CHARSET = latin1".

    Not sure if it works, buy I have had a similar problem and it worked.
     
    HenrikAI, May 11, 2006 IP
  3. cb711

    cb711 Well-Known Member

    Messages:
    1,739
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    115
    #3
    I tried it and it said

    Error
    SQL query:

    -- --------------------------------------------------------
    --
    -- Table structure for table `ban`
    --
    CREATE TABLE `ban` (

    `ip` varchar( 15 ) NOT NULL default '',
    PRIMARY KEY ( `ip` )
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1;



    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 'DEFAULT CHARSET=latin1' at line 4
     
    cb711, May 11, 2006 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    What version of MySQL were you coming from?
     
    digitalpoint, May 11, 2006 IP
  5. HenrikAI

    HenrikAI Peon

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You didn't remove "DEFALT CHARSET=latin1" :)
     
    HenrikAI, May 11, 2006 IP