Mysql 의 기본 위치는 지정하십시오. 설정파일에서 redhat linux 기입란?
실행하여 여러분이 원하는 정보를 찾을 수 있습니다.
mysql --help
또는
mysqld --help --verbose
이 찾았다.
mysql --help | grep Default -A 1
및 출력:
(Defaults to on; use --skip-auto-rehash to disable.)
-A, --no-auto-rehash
--
(Defaults to on; use --skip-line-numbers to disable.)
-L, --skip-line-numbers
--
(Defaults to on; use --skip-column-names to disable.)
-N, --skip-column-names
--
(Defaults to on; use --skip-reconnect to disable.)
-s, --silent Be more silent. Print results with a tab as separator,
--
--default-auth=name Default authentication client-side plugin to use.
--binary-mode By default, ASCII '\0' is disallowed and '\r\n' is
--
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
이는 /etc/mysql/my.cnf http://support. dell. ''
기본 옵션은 다음 파일을 읽는 순서대로:
/etc/mysql/my.cnf
/etc/my.cnf
~/.my.cnf
모두야 좋은 후보로는 것 같다.
/etc/my.cnf
/etc/mysql/my.cnf
/var/lib/mysql/my.cnf
...
대부분의 경우 단순히 시스템 프로세스 사용하여 목록을 확인할 수 있는 ps:
server ~ # ps ax | grep '[m]ysqld'
출력입니다
10801 ? Ssl 0:27 /usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf --basedir=/usr --datadir=/var/lib/mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock
또는
which mysqld
/usr/sbin/mysqld
그럼
/usr/sbin/mysqld --verbose --help | grep -A 1 "Default options"
/etc/mysql/my.cnf ~/.my.cnf /usr/etc/my.cnf
MariaDB programs look for option files in a set of
locations which depend on the deployment platform.
[...] For information about these locations, do:
'my_print_defaults --help' and see what is printed under
"Default options are read from the following files in the given order:"
More information at: http://dev.mysql.com/doc/mysql/en/option-files.html