Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 如何在phpMyAdmin中对数据库表进行索引_Mysql_Indexing - Fatal编程技术网

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

Mysql 如何在phpMyAdmin中对数据库表进行索引,mysql,indexing,Mysql,Indexing,每次新查询到达数据库表时,我都希望提高数据库速度。有谁能帮助我在phpMyAdmin中如何进行索引以及如何进行索引 选择一个表 点击页面结构 在列部分下面,您可以找到索引部分 找到了在x列上创建索引 按下按钮GO 您可以使用以下语句: create index idx_username on users(username) 实际上的意思是:“我想在username列上的表用户上创建名为idx_username的索引”从PHPMYADMIN设置索引 我用黄色标记了索引按钮

每次新查询到达数据库表时,我都希望提高数据库速度。有谁能帮助我在phpMyAdmin中如何进行索引以及如何进行索引

  • 选择一个表
  • 点击页面结构
  • 在列部分下面,您可以找到索引部分
  • 找到了在x列上创建索引
  • 按下按钮GO
  • 您可以使用以下语句:

    create index idx_username on users(username)
    

    实际上的意思是:“我想在username列上的表用户上创建名为idx_username的索引”

    从PHPMYADMIN设置索引

    我用黄色标记了索引按钮