Results 1 to 8 of 8

Thread: database restory

  1. #1
    Senior Member thebillionaire's Avatar
    Join Date
    Apr 2004
    Posts
    746

    database restory

    I need help restoring my database, I keep getting errors. Can someone help me out?

    pay: $5

  2. #2
    Senior Member thebillionaire's Avatar
    Join Date
    Apr 2004
    Posts
    746
    ps. my my stupid thread title, spelled it wrong, lol

  3. #3
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543
    What type of DB? What r the errors?

  4. #4
    Senior Member thebillionaire's Avatar
    Join Date
    Apr 2004
    Posts
    746
    my sql, im getting the errors because i think the mysql versions differ

  5. #5
    Senior Member thebillionaire's Avatar
    Join Date
    Apr 2004
    Posts
    746
    Error

    SQL query:

    CREATE TABLE `comments` (
    `username` varchar( 255 ) NOT NULL default '',
    `content` text NOT NULL ,
    `idgame` int( 11 ) NOT NULL default '0',
    `approved` char( 3 ) NOT NULL default '',
    `id` int( 11 ) NOT NULL AUTO_INCREMENT ,
    UNIQUE KEY `id` ( `id` )
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1;

    if I remove the last line I get another error

  6. #6
    Registered
    Join Date
    Feb 2005
    Posts
    85
    what is the exactly error message?

    are you trying that query in phpmyadmin?

  7. #7
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543
    Yeah I have had this error before...

    Try removing:

    ENGINE = MYISAM DEFAULT CHARSET = latin1

    or this

    DEFAULT CHARSET = latin1

    Make sure you leave the semi colon

  8. #8
    Senior Member thebillionaire's Avatar
    Join Date
    Apr 2004
    Posts
    746
    then I get this error

    SQL query:

    CREATE TABLE `comments` (
    `username` varchar( 255 ) NOT NULL default '',
    `content` text NOT NULL ,
    `idgame` int( 11 ) NOT NULL default '0',
    `approved` char( 3 ) NOT NULL default '',
    `id` int( 11 ) NOT NULL AUTO_INCREMENT ,
    UNIQUE KEY `id` ( `id` )
    ) ENGINE = MYISAM --
    -- Dumping data for table `comments`
    --
    /*!40000 ALTER TABLE `comments` DISABLE KEYS */

    MySQL said: Documentation
    #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 'ALTER TABLE `comments` DISABLE KEYS */' at line 15

Similar Threads

  1. Clear my misunderstanding: 1 MySQL database for many programs?
    By iKwak in forum Website Programming & Databases
    Replies: 4
    Last Post: 08-21-2005, 10:40 AM
  2. Help me to optimize my database
    By pierrebenoit in forum Website Programming & Databases
    Replies: 2
    Last Post: 12-29-2004, 10:22 AM
  3. Posting Comments on Entries in a Database?
    By writergal in forum Website Programming & Databases
    Replies: 2
    Last Post: 09-07-2004, 02:33 PM
  4. Non-CPanel Database
    By iKwak in forum Web Hosting & Servers
    Replies: 1
    Last Post: 02-16-2004, 02:12 PM
  5. Database Driven Websites
    By star in forum Website Programming & Databases
    Replies: 6
    Last Post: 10-21-2003, 03:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •