找不到mysqlconfiguration

我使用从托pipe分配安装的服务器上的CentOS。 系统工作正常,但我找不到mysqlconfiguration来解决一些事情。 我只能在/ var / lib / mysql文件夹中看到名为hostname.err的mysql日志文件。

文件search:find / -name“ my cnf”找不到任何文件,从/ usr / share中删除默认configuration,默认的/etc/my.cnf在任何修改后都不起作用,因为Mysqld没有使用。

在系统文件中search文本:find / -type f -exec grep«hostingname.err»{} \; 没有出现任何结果

请帮助我的任何想法,以find正确的我的CNF使用的MySQL。

谢谢。

运行/usr/libexec/mysqld --help --verbose应该给你默认的configuration文件位置。 输出的第一行应该是这样的 –

 Default options are read from the following files in the given order: /etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf 

如果这不起作用,请尝试运行ps aux | grep -i mysqld ps aux | grep -i mysqld并查看默认的configuration文件是否被覆盖了--defaults-file=选项来读取给定文件的默认选项。