Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10

Thread: mySQL Error

  1. #1
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default mySQL Error

    When I try to edit the database 'id', phpMyAdmin gives me the following error:

    SQL query:
    ALTER TABLE `petition` CHANGE `id` `id` VARCHAR( 30 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL AUTO_INCREMENT
    MySQL said:
    #1063 - Incorrect column specifier for column 'id'
    I'm trying to edit it so it's auto increment.

    Moved by Agesilaus (Forum Moderator) from Design and Development: Please post in the correct forum.
    Last edited by Agesilaus; 14-12-2007 at 06:30 AM.


    Selling DJ/Habbo layout, more info here.


  2. #2
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    :S when i go on this it asks for a password :S in a popup box with cpanel login :S bug or summin?


  3. #3
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    Quote Originally Posted by Luno1599 View Post
    :S when i go on this it asks for a password :S in a popup box with cpanel login :S bug or summin?
    I don't understand what you're saying, does that even have to do with this thread?


    Selling DJ/Habbo layout, more info here.


  4. #4
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    Well i got the same as them, I clicked this thread to view it and it asked for a cpanel password to deano.xplodehost.com or something?
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


  5. #5
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    Oh, just refresh, I took out the cpanel thinger.

    EDIT: I even dropped the whole table and created a ne wone, with the following code:

    CREATE TABLE `petition` ( `id` varchar( 30 ) NOT NULL AUTO_INCREMENT '',
    `name` varchar( 30 ) NOT NULL default '',
    `grade` varchar( 30 ) NOT NULL default '',
    `comment` varchar( 150 ) NOT NULL default '',
    PRIMARY KEY ( `id` )
    ) TYPE = MYISAM

    And it still says incorrect column specifier. :S
    Last edited by adamFTW; 13-12-2007 at 09:56 PM.


    Selling DJ/Habbo layout, more info here.


  6. #6
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Shouldn't have VARCHAR in it if i am correct

    Try

    Code:
    ALTER TABLE `petition` CHANGE `id` `id` int(11) NOT NULL auto_increment
    Looking for a good desiner to design a social networking template.

    PM me.

  7. #7
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    No worries, fixed the problem a while ago. Thanks though!

    Please close.

    Edited by Agesilaus (Forum Moderator): Just as a reminder, we don't close threads by the request of the thread starter, if you wish to have the ability to close your own threads, you will have to purchase VIP by going to your Paid Subscriptions in your User CP.
    Last edited by Agesilaus; 14-12-2007 at 06:27 AM.


    Selling DJ/Habbo layout, more info here.


  8. #8
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Just out of curiousity..

    Was i right? lol
    Looking for a good desiner to design a social networking template.

    PM me.

  9. #9
    Join Date
    Apr 2007
    Location
    england
    Posts
    536
    Tokens
    0

    Default

    I'm not sure, I fixed it a while before you posted.


    Selling DJ/Habbo layout, more info here.


  10. #10
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    You have to have it set as the primary index/key first.

Posting Permissions

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