在哪里可以找到文件my.cnf或my.ini文件? [英] Where can I find the file my.cnf or my.ini file?

查看:886
本文介绍了在哪里可以找到文件my.cnf或my.ini文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读关于MySQL复制,我需要更改一些配置,但我找不到文件my.cnf或my.ini。我不知道我有哪个MySQL版本,但我已经下载了很久以前,作为一个.zip。我的盒子运行Windows 7 64。
在哪里可以找到这个文件?我应该创建吗?哪里?
谢谢。

I've read about MySQL replication and i need to change some configuration but I can't find the file my.cnf or my.ini. I don't know which MySQL version I have but I've downloaded it a long time ago, as a .zip. My box runs Windows 7 64. Where can i find this file? Should I create it? Where? Thank you.

推荐答案

我目前没有窗口,但我认为它应该驻留在 C:\WINDOWS\ 目录。

I do not have Window present at the moment, but I think it should reside in the C:\WINDOWS\ directory.

当使用 mysql --help 它显示(摘录):

When invoking help on GNU/Linux with mysql --help it shows (excerpt):

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 

也许你可以在Windows上获得相同的信息。

Maybe you can get the same information on Windows, too.

Btw: mysql --version ,您可以获取您当前的版本。

Btw: with mysql --version you can get your current version.

这篇关于在哪里可以找到文件my.cnf或my.ini文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆