View Single Post
Old 11-30-2012, 11:05 PM   PM User | #10
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,248
Thanks: 59
Thanked 3,998 Times in 3,967 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
That is *REALLY* what you got from SHOW CREATE TABLE users??

Then the display in PHPMyAdmin? Then I think you need to remove PHPMyAdmin from your system and re-install it.

Because it's clearly braindead.

HOWEVER...

You must have also done something wrong when you did the CREATE TABLE, in the first place.

You have THREE indexes all defined on the field userid which makes no sense at all.

On top of that, you are using the TEXT data type which is a VERY expensive data type for no reason at all! Not just once by FOUR times!

Try doing *JUST THIS*:
Code:
CREATE TABLE users (
    userid INT AUTO_INCREMENT PRIMARY KEY,
    uname VARCHAR(30) NOT NULL,
    pword VARCHAR(30) NOT NULL,
    email VARCHAR(200) NOT NULL,
    nickname VARCHAR(30) NOT NULL,
    verified BOOLEAN NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
When I do that and then do show create table users I get:
Code:
+-------+--------------------------------------------
| Table | Create Table
+-------+--------------------------------------------
| users | CREATE TABLE `users` (
  `userid` int(11) NOT NULL AUTO_INCREMENT,
  `uname` varchar(30) NOT NULL,
  `pword` varchar(30) NOT NULL,
  `email` varchar(200) NOT NULL,
  `nickname` varchar(30) NOT NULL,
  `verified` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+-------+--------------------------------------------
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
KULP (12-02-2012)