简体   繁体   English

找不到my.ini(mysql 5.7)

[英]Can't find my.ini (mysql 5.7)

I've installed MySQL 5.7 and I'm trying to change the default setting written in my.ini file. 我安装了MySQL 5.7,我正在尝试更改my.ini文件中的默认设置。

So, I followed the path that I found in Stackoverflow (MySQL\\MySQL Server 5.7). 所以,我遵循了我在Stackoverflow(MySQL \\ MySQL Server 5.7)中找到的路径。

However, what I found was only a few folders, but not my.ini file. 但是,我发现只有几个文件夹,但不是my.ini文件。 I searched every folder, but I couldn't find it. 我搜索了每个文件夹,但我找不到它。 Where is it? 它在哪里?

I found a solution by myself. 我自己找到了解决方案。

What I've been doing so far was just keep searching MySQL\\MySQL Server 5.7 path inside Program file folder. 到目前为止我一直在做的只是继续在Program文件夹中搜索MySQL \\ MySQL Server 5.7路径。 However my.ini was in mysql path located in Program Data folder, which is hidden in C drive. 但是,my.ini位于Program Data文件夹中的mysql路径中,该文件夹隐藏在C盘中。 So, anyone who are suffering from the same problem, just go to C drive and make all the folder visible and you will find my.ini. 所以,任何遇到同样问题的人,只需转到C盘并使所有文件夹可见,你就会找到my.ini。

If you're in Linux there's an easy way of finding any file if you know the filename. 如果您在Linux中,如果您知道文件名,则可以轻松找到任何文件。

$ locate <filename>

But before using the above command you may need to update your file database. 但在使用上述命令之前,您可能需要更新文件数据库。 You may do so using 你可以这样做

$ sudo updatedb

In windows the search bar gives you the option to locate files. 在Windows中,搜索栏为您提供了查找文件的选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM