Pha*_*dra 3 mysql my.cnf installation
我是 linux 新手,我刚刚在我的 linux 机器上安装了 MySQL-server-5.1.59-1.glibc23.i386.rpm。
我想知道 my.cnf 文件存储在哪里..?my.cnf 是否会在安装时创建?
我正在使用 Fedora 核心 13
编辑:我仍然无法找到这个文件。当我问我的管理员时,他告诉我们需要复制 my-large.cnf 并放在 /etc 文件夹中......是这样......?
很可能是 /etc/my.cnf 或 /etc/mysql/my.cnf。还要检查 /home/username/my.cnf 和 /home/username/.mysql/my.cnf
如果没有运气,你可以跑
find / -type f -name my.cnf
Run Code Online (Sandbox Code Playgroud)
这将扫描您允许非特权访问的整个磁盘(这很好;它应该找到它,我假设您的发行版附带它并且您能够连接,否则您不会问这么多;但它会占用你的磁盘)
您实际上可以找到指示您编译的二进制文件读取选项文件的位置。
$ mysqld --help --verbose
110923 17:09:29 [Warning] Can't create test file /usr/local/mysql-5.6.2-m5-osx10.6-x86_64/data/laptop1113-2.lower-test
110923 17:09:29 [Warning] Can't create test file /usr/local/mysql-5.6.2-m5-osx10.6-x86_64/data/laptop1113-2.lower-test
110923 17:09:29 [Note] Plugin 'FEDERATED' is disabled.
mysqld Ver 5.6.2-m5 for osx10.6 on i386 (MySQL Community Server (GPL))
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Starts the MySQL database server.
Usage: mysqld [OPTIONS]
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf
The following groups are read: mysqld server mysqld-5.6
..
Run Code Online (Sandbox Code Playgroud)
所以对我来说是/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf。
归档时间: |
|
查看次数: |
32712 次 |
最近记录: |