MySQL之常用查询

  1) 查询字符集

show variables like 'character%';

   

  2)查看版本

select version();

  3) 共享表空间的数据文件存储路径

show variables like 'innodb_data%';

  4) 查看是哪种类型的表空间

show variables like '%innodb_file_per_table%';

  5) MySql数据库物理文件存放位置

show VARIABLES like '%datadir%';

猜你喜欢

转载自www.cnblogs.com/xingxia/p/mysql_query.html