Forum Moderators: coopster

Message Too Old, No Replies

How to build an index in mysql?

         

turbohost

2:29 pm on Oct 20, 2003 (gmt 0)

10+ Year Member



Hi,

I was wondering if there are ready-to-use scripts available to make an index in a mysql database? I've got a table with a few columns (artist, title, body, ... are a few of them) and I want to build an index from these columns. In fact, the question is 'how do I build an index from these columns'? :->

Turbohost

Chroder

3:14 pm on Oct 20, 2003 (gmt 0)

10+ Year Member



[phpmyadmin.net...]

phpMyAdmin is your one-stop for managing your mysql database(s). Just download it and edit the config.php with your database username/password and your pretty much set :)

You can just open up your table and edit the fields to be an index.

lorax

3:33 pm on Oct 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Index as in providing a quick way to find data within your table or do you mean index as in a way to a tool that allows you to add/edit/delete data?

turbohost

5:09 pm on Oct 20, 2003 (gmt 0)

10+ Year Member



Index as in a way providing quick access to data ...

killroy

5:22 pm on Oct 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



run mysql.exe

ALTER TABLE tablename ADD INDEX indexname(inhdexcolumnname);

Done :)

SN

lorax

7:36 pm on Oct 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ah, if it's a one time thing and you have shell access on the webserver then you could do as killroy suggests. But if you don't have that access or would like to have a more visual way of working with you db then I suggest you install (and secure) PHPMyAdmin as Chroder suggests.