MySQL 体系架构
1、网络连接层
2、服务层
3、存储引擎
注意: 存储引擎是针对表的,建表的时候指定存储引擎,不是针对数据库的,同一个库中的两张表是可以有不同的存储引擎的。前提必须是安装了该引擎插件。
4、系统文件
mysql> show variables like '%log_err%' -> ; +---------------+----------------------------+ | Variable_name | Value | +---------------+----------------------------+ | log_error | /var/lib/mysql/edwrac1.err | +---------------+----------------------------+ 1 row in set (0.00 sec) mysql> show variables like '%general%'; +------------------+----------------------------+ | Variable_name | Value | +------------------+----------------------------+ | general_log | OFF | | general_log_file | /var/lib/mysql/edwrac1.log | +------------------+----------------------------+ 2 rows in set (0.00 sec) mysql> show variables like '%slow_query%'; +---------------------+---------------------------------+ | Variable_name | Value | +---------------------+---------------------------------+ | slow_query_log | OFF | | slow_query_log_file | /var/lib/mysql/edwrac1-slow.log | +---------------------+---------------------------------+ 2 rows in set (0.00 sec) mysql> show variables like '%long_query%'; +-----------------+-----------+ | Variable_name | Value | +-----------------+-----------+ | long_query_time | 10.000000 | +-----------------+-----------+ 1 row in set (0.00 sec)
修改参数
4.1 数据文件