1) 分析慢日志(慢查询会记录所有的sql语句)
启动慢查询:



2) explain

3)修改sql或者让sql走索引
account是索引,把name改为account可以明显加快运行时间


或者把name加索引