Linux Mint 和 XAMPP:不加载 my.cnf 文件更改

Linux Mint 和 XAMPP:不加载 my.cnf 文件更改

我正在尝试在 mysql 上设置 innodb_log_file_size 和 max_allowed_pa​​cket 值。我在 Linux Mint 20 下使用 xampp。

所以我编辑了

/etc/mysql/my.cnf

该文件如下所示:

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.

# Here is entries for some specific programs
# The following values assume you have at least 32M ram
[mysqld]
innodb_log_file_size=256M
max_allowed_packet=256M

我最终用以下命令重新启动了 mysql:

sudo /opt/lampp/lampp restart

但如果我执行,我不会得到新值

SHOW VARIABLES LIKE 'max_allowed_packet'

在我的mysql上。

我缺少什么?

相关内容