在 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 (将#修改为@)