MySQL优化,my.cnf几乎是空的

时间:2017-12-18 17:28:06

标签: mysql optimization

我有一个虚拟机,我安装了koha - 开源集成库系统(ILS),它工作正常,但我想优化mysql,我运行MySQLTuner脚本,我得到了这个建议:

General recommendations:
Restrict Host for user@% to user@SpecificDNSorIp
MySQL started within last 24 hours - recommendations may be inaccurate
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
Performance should be activated for better diagnostics
Consider installing Sys schema from "Link"
Read this before changing innodb_log_file_size and/or 
innodb_log_files_in_group: "Link"
Variables to adjust:
query_cache_size (=0)
query_cache_type (=0)
performance_schema = ON enable PFS
innodb_log_file_size should be (=16M) if possible, so InnoDB total log files 
size equals to 25% of buffer pool size.
innodb_buffer_pool_instances (=1)

我在my.cnf(/etc/mysql/my.cnf)文件中的当前配置是:

# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

有没有人有关于如何做这些建议的任何建议?

0 个答案:

没有答案