[英]How do I find the data directory for MySQL Server 5.7 on Windows 10?
I've been snooping around and I found that some people's MySQL Server 5.7
directory had a data directory within their MySQL Server 5.7
directory along with bin
, lib
etc. but mine doesn't. 我一直在窥探周围,我发现,一些人的MySQL Server 5.7
目录中有一个数据目录内的MySQL Server 5.7
目录沿bin
, lib
等,但我的不会。 I've tried reinstalling multiple ways and I have concluded that the data directory is not there. 我尝试过以多种方式重新安装,但得出的结论是数据目录不存在。
Upon launching the MySQL server I get ERROR: 启动MySQL服务器后,出现错误:
failed to set datadir to C:\\Program Files\\MySQL\\MySQL Server 5.7\\data\\ 无法将datadir设置为C:\\ Program Files \\ MySQL \\ MySQL Server 5.7 \\ data \\
By the way, I am using MySQL Server 5.7
connected to the NetBeans IDE 8.2
, so I can't launch my PHP code. 顺便说一句,我正在使用连接到NetBeans IDE 8.2
MySQL Server 5.7
,因此无法启动PHP代码。
Regarding to this documentation here https://dev.mysql.com/doc/refman/5.7/en/windows-installation-layout.html if you installed your MySQL using the installer, you could find data directory under %PROGRAMDATA%\\MySQL\\MySQL Server 5.7\\ 关于此文档, 请参见https://dev.mysql.com/doc/refman/5.7/en/windows-installation-layout.html如果您使用安装程序安装了MySQL,则可以在%PROGRAMDATA%\\ MySQL下找到数据目录\\ MySQL服务器5.7 \\
if you find your data directory there, you can send that location to mysqld using --datadir to let mysql server where to find data files. 如果在该目录中找到数据目录,则可以使用--datadir将该位置发送到mysqld,以使mysql服务器可以在其中查找数据文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.