可以这样察看配置文件的位置,没有配置文件也能够启动的 [root@localhost ~]# which mysqld /usr/sbin/mysqld [root@localhost ~]# /usr/sbin/mysqld --verbose --help|grep -A 1 'Default options' 101209 10:02:53 [Note] Plugin 'FEDERATED' is disabled. Default options are read from the following files in the given order: /etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf
参看:
http://blog.csdn.net/iihero/archive/2010/05/13/5585039.aspx
[root@localhost ~]# which mysqld
/usr/sbin/mysqld
[root@localhost ~]# /usr/sbin/mysqld --verbose --help|grep -A 1 'Default options'
101209 10:02:53 [Note] Plugin 'FEDERATED' is disabled.
Default options are read from the following files in the given order:
/etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf
没有配置文件会有默认值的
仍然找不到my.cnf到底在什么地方?
我的MYSQL版本是5.1.53