refer:http://https://stackoverflow.com/questions/3002605/how-do-i-add-indexes-to-mysql-tables

1.add index (数据特别多的时候,可以使用)

和postgres相似,进入命令行,然后进入对应的数据库,增加即可

sudo docker exexc -it 1305 bash

mysql -uroot -pxxxxx

或者 mysql -uroot -pxxx

ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)

2.使用mysql进行保存文章,当文章太长的时候,就会出现报错,进行数据类型的修改即可:https://stackoverflow.com/questions/1827063/mysql-error-key-specification-without-a-key-length

alter table DataToolongDemo change Name Name longtext;

alter table blogs change Content Content longtext;