一、EXPLAIN 做MySQL优化,我们要善用 EXPLAIN 查看SQL执行计划。 下面来个简单的示例,标注(1,2,3,4,5)我们要重点关注的数据
image.png
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
一.基础笔试命令考察 1. 开启MySQL服务
service mysqld start /init.d/mysqld start safe_mysql & 关闭mysql服务
service mysqld stop /etc/init.d/mysqld stop mysqladmin -uroot
-p123456 shutdown
2. 检测端口是否运行 lsof -i:3306
netstat -tunlp|grep 3306 ss -tulnp|grep 3306
3. 为MySQL设置密码或者修改密码。
【服务器】 【mysql】 【innodb】 【SQL】 【线程】 …