select * from information_schema.TABLES where information_schema.TABLES.TABLE_SCHEMA='mydb1';
3、查看指定数据库的大小 比如说 数据库mydb1
1
select concat(round(sum(DATA_LENGTH/1024/1024),2), 'MB') as data from information_schema.TABLES where information_schema.TABLES.TABLE_SCHEMA='mydb1';
4、查看指定数据库的表的大小 比如说 数据库mydb1中b1表
1
select concat(round(sum(DATA_LENGTH/1024/1024),2), 'MB') as data from information_schema.TABLES where information_schema.TABLES.TABLE_SCHEMA='mydb1' and TABLE_NAME='b1';
ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang' failed with exit status 1