一、cmd连接mysql数据库:
sql: mysql.exe -hlocalhost -uroot -p****
--显示所有的数据库 : show databases;
--切换数据库: use xy17_web;
--显示所有的表: show tables;
...
详细使用参考:
如何查找MySQL中查询慢的SQL语句
一次关于慢查询及FGC频繁的调优经历
二、简单配置
1.set profiling=1; select * from web_user; show profiles;