我在哪里可以找到所有参数的 mysql 配置文件?
我发现了一些配置文件
/etc/mysql/
目录,但没有任何文件包含所有参数!
其实我想远程访问我机器的mysql服务器。所以我在文件中找到“ bind-address ”参数,但没有一个文件包含所有参数!
这些是我在这个目录中找到的文件:
./conf.d
./conf.d/mysql.cnf
./conf.d/mysqldump.cnf
./debian-start
./debian.cnf
./mariadb.cnf
./mariadb.conf.d
./mariadb.conf.d/50-client.cnf
./mariadb.conf.d/50-mysql-clients.cnf
./mariadb.conf.d/50-mysqld_safe.cnf
./mariadb.conf.d/50-server.cnf
./my.cnf.fallback
./my.cnf
我读过一些文章说 my.cnf 是 mysql 配置文件,但没有绑定(bind)地址或任何这是 my.cnf 文件的输出。
# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# 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.
#
# 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/
mysql版本:
mysql Ver 15.1 Distrib 10.3.22-MariaDB,用于 debian-linux-gnu (x86_64) 使用 readline 5.2
机器名称和版本:
1. Linux parrot 5.6.0-2parrot1-amd64 #1 SMP Debian 5.6.14-2parrot1 (2020-05-23) x86_64 GNU/Linux
2. Linux ubuntu-VirtualBox 4.15.0-106-generic#107~16.04.1-Ubuntu SMP Thu Jun 4 15:39:45 UTC 2020 i686 i686 i686 GNU/Linux
最佳答案
你想要你输入的设置my.cnf
或其他文件?
或者您是否想要所有 500 种左右的设置,包括默认值,例如 SHOW VARIABLES
?
关于mysql - 在哪里可以找到包含所有参数的 mysql 配置文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62363866/