弱弱的请教, mysql 5.6.46,如何查看分配mysql实例内存大小

#全局共享内存 9个变量
show variables like ‘innodb_buffer_pool_size’; /* InnoDB 数据和索引缓存(InnoDB Buffer Pool) /
show variables like ‘innodb_additional_mem_pool_size’; / InnoDB 字典信息缓存(InnoDB Additional Memory Pool)/
show variables like ‘innodb_log_buffer_size’; / InnoDB 日志缓冲区(InnoDB Log Buffer) /
show variables like ‘binlog_cache_size’; / 二进制日志缓冲区(Binlog Buffer)/
show variables like ‘thread_cache_size’; / 连接线程缓存(Thread Cache)/
show variables like ‘query_cache_size’; / 查询缓存(Query Cache)/
show variables like ‘table_open_cache’; / 表缓存(Table Cache) /
show variables like ‘table_definition_cache’; / 表定义信息缓存(Table definition Cache) /
show variables like ‘key_buffer_size’; / MyISAM索引缓存(Key Buffer) /
#最大线程数
show variables like ‘max_connections’;
#线程独享内存 6个变量
show variables like ‘thread_stack’; / 线线程栈信息使用内存(thread_stack) /
show variables like ‘sort_buffer_size’; / 排序使用内存(sort_buffer_size) /
show variables like ‘join_buffer_size’; / Join操作使用内存(join_buffer_size) /
show variables like ‘read_buffer_size’; / 顺序读取数据缓冲区使用内存(read_buffer_size) /
show variables like ‘read_rnd_buffer_size’; / 随机读取数据缓冲区使用内存(read_rnd_buffer_size) /
show variables like ‘tmp_table_size’; / 临时表使用内存(tmp_table_size) ,我实际计算把tmp_table_size放入全局共享内*/
也可以通过系统变量的方式直接获取
select @@key_buffer_size;
select @@max_connections



