如何解决在 Debian 10 上配置和调整 MariaDB
我有一个新的 VPS。这实际上是我人生中第一次拥有自己的服务器。
已经对其进行了一些测试,但我在 Debian 10 上使用 MariaDB 时遇到了一些问题。
到现在为止,我只是在本地使用 XAMPP 制作了我的网页。那里一切正常。
在服务器上我安装了 Virtualmin。我所看到的,我在使用 MariaDB 时遇到了很多问题。
我从一开始就使用 MySQL Tuner,看看那里发生了什么。
我有很多建议。这是它的样子:
一般建议:
Configure your accounts with ip or subnets only,then update your configuration with skip-name-resolve=1
We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
(specially the conclusions at the bottom of the page).
Increase table_open_cache gradually to avoid file descriptor limits
Read this before increasing table_open_cache over 64:
Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
This is MyISAM only table_cache scalability problem,InnoDB not affected.
See more details here: https://bugs.mysql.com/bug.php?id=49177
This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
Beware that open_files_limit (8378) variable
should be greater than table_open_cache (512)
Performance schema should be activated for better diagnostics
Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
Before changing innodb_log_file_size and/or innodb_log_files_in_group read this:
要调整的变量:
query_cache_size (=0)
query_cache_type (=0)
query_cache_limit (> 1M,or use smaller result sets)
query_cache_size (> 32M)
join_buffer_size (> 256.0K,or always use indexes with JOINs)
table_open_cache (> 512)
table_definition_cache(400) > 815 or -1 (autosizing if supported)
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.
我不知道,当我打开配置文件 /etc/mysql/my.cnf 时,我只有这个...
[client-server]
还有这个文件的所有评论...
如果有人能在这种情况下帮助我,那就太棒了,从来没有配置过 MySQL/MariaDB :-)
非常感谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。