简体   繁体   English

如何在 phpMyAdmin 中对数据库表进行索引

[英]How to do Indexing of database tables in phpMyAdmin

I want to boost up my database speed each time when new query hit to database table.每次当新查询命中数据库表时,我都想提高我的数据库速度。 Can anybody help me out with how indexing works in phpMyAdmin & how to do it??任何人都可以帮助我了解 phpMyAdmin 中的索引工作方式以及如何操作吗?

  1. Select a table选择一张桌子
  2. click on page Structure点击页面结构
  3. Below the column section you can found an index section在列部分下方,您可以找到索引部分
  4. Found the Create an index on x columns找到x上创建索引
  5. Press the button GO按下按钮GO

you can use create index statement:您可以使用创建索引语句:

create index idx_username on users(username)

what actually means: "i want to create index called idx_username on table users on column username"实际意思是:“我想在列用户名上的表用户上创建名为 idx_username 的索引”

Set the index from PHPMYADMIN.从 PHPMYADMIN 设置索引。

I marked the index button in yellow.我用黄色标记了索引按钮。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM