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に。

私は何を見逃していますか?

ベストアンサー1

おすすめ記事