1
Mercury
Help with two sql errors -
  • 2005/4/14 23:48

  • Mercury

  • Just popping in

  • Posts: 28

  • Since: 2005/3/29


Hi Everyone,

I know very little about databases, but when looking through phpmyadmin at users table, I noticed the following errors:

1) PRIMARY and INDEX keys should not both be set for column `uid`
2) More than one INDEX key was created for column `uname`

Indexes:
Keyname Type Cardinality Field
PRIMARY PRIMARY 3 uid
uname INDEX None uname
email INDEX None email

uiduname INDEX None uid
uname
unamepass INDEX None uname
pass

Not sure if I should be worried or not, any help appreciated.

Thanks!

Mercury

2
rowdie
Re: Help with two sql errors -
  • 2005/4/15 0:17

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


One of those messages is valid, the other is a bug in phpmyadmin, by the looks of it.

The one about the primary key and index being the same is wrong, it's not taking into account the fact that the index is a multiple column index.

The message about two indexes on uname is true, it's unnecessary to have the single index on uname.

But those messages from myphpadmin are just there to bring it to your attention, they are not errors. The core developers could optimize the database somewhat by removing that extra index, it might save milliseconds when registering a new user, or updating user details, but it's not something to worry about.

3
Mercury
Re: Help with two sql errors -
  • 2005/4/15 0:20

  • Mercury

  • Just popping in

  • Posts: 28

  • Since: 2005/3/29


Thanks for the respons! I'll not worry about it then.

Cheers,

Mercury

Login

Who's Online

303 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 303


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits