mysql 数据库的 processlist 并发连接 一、展示信息 processlist展示了对应的数据库有哪些线程在运行,如果有些语句执行速度慢,可以在里面看到。 二、命令 根据不同的账号权限可以看到所有用户的,当前用户的对应的连接。只有100条 show processlist 展示所有的连接数据 show full processlist
Mysql将数据库中重复的数据全部显示出来 select a.id,a.name from survey a join (
select name,count(name) from survey
group by name having count(name)>1
) b on a.name=b.name
where a.type is nu...
mysql的配置文件my.cnf参考参数 [mysqld] # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else...
mysql索引类型与索引方法 1、B-树索(btree)和 哈希索引(hash) 2、 普通索引(index/key): 允许插入重复值和空值,CREATE INDEX index_id ON tb_student(id); 唯一 索引(unique): 值必须唯一,允许有空值,CREATE UNIQUE INDEX index_id ON tb_stude...