mysql常用命令
来源:互联网 发布:软件售前方案 编辑:程序博客网 时间:2024/05/16 07:49
-- 查看表状态
show table status
-- 查询所有数据库占用磁盘空间大小的SQL语句:
select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),' MB') as data_size,
concat(truncate(sum(index_length)/1024/1024,2),'MB') as index_sizefrom information_schema.tables
group by TABLE_SCHEMA
order by data_length desc;
GB的:
SELECT
TABLE_SCHEMA,
CONCAT(TRUNCATE(SUM(data_length) / 1024 / 1024/1024,
2),
'GB') AS data_size,
CONCAT(TRUNCATE(SUM(index_length) / 1024 / 1024/1024,
2),
'GB') AS index_size
FROM
information_schema.tables
GROUP BY TABLE_SCHEMA
ORDER BY data_length DESC;
--显示数据库关于超时的时间配置
show global variables like '%timeout%';
set global wait_timeout= 288000000;
1 0
- MySQL常用命令
- MySql常用命令
- MySQL常用命令
- mysql常用命令
- mysql常用命令
- mysql常用命令
- Mysql常用命令
- MySQL常用命令
- mysql 常用命令
- MySQL常用命令
- mysql常用命令
- MySql常用命令
- MySQL常用命令
- mysql 常用命令
- mysql常用命令
- mysql常用命令
- mysql 常用命令
- MySQL常用命令
- Longest Consecutive Sequence
- 不需要继承实现模板模式
- 十的阶乘
- 个位数(一位数)相乘
- android js 互调
- mysql常用命令
- Paillier同态加密算法的java实现
- Python实现自动存储Windows 10锁屏聚焦图片到指定文件夹
- Android自动化测试技巧
- splash2
- 12的阶乘
- vb15个数字作业
- swift开发-点击屏幕 收回键盘
- oracle分组后取每组第一条数据