2.3.1 MySQL Installation Layout on Microsoft WindowsMicrosoft Windows上的MySQL安装布局

For MySQL 8.0 on Windows, the default installation directory is C:\Program Files\MySQL\MySQL Server 8.0 for installations performed with MySQL Installer. 对于Windows上的MySQL 8.0,默认安装目录是C:\Program Files\MySQL\MySQL Server 8.0,用于使用MySQL安装程序执行的安装。If you use the ZIP archive method to install MySQL, you may prefer to install in C:\mysql. 如果使用ZIP存档方法安装MySQL,您可能更喜欢在C:\mysql中安装。However, the layout of the subdirectories remains the same.但是,子目录的布局保持不变。

All of the files are located within this parent directory, using the structure shown in the following table.所有文件都位于该父目录中,使用下表所示的结构。

Table 2.4 Default MySQL Installation Layout for Microsoft WindowsMicrosoft Windows的默认MySQL安装布局

Directory目录Contents of Directory目录内容Notes备注
binmysqld server, client and utility programsmysqld服务器、客户端和实用程序
%PROGRAMDATA%\MySQL\MySQL Server 8.0\Log files, databases日志文件、数据库The Windows system variable %PROGRAMDATA% defaults to C:\ProgramData.Windows系统变量%PROGRAMDATA%默认为C:\ProgramData
docsRelease documentation发布文档With MySQL Installer, use the Modify operation to select this optional folder.使用MySQL安装程序,使用修改操作选择此可选文件夹。
includeInclude (header) files包括(头)文件
libLibraries图书馆
shareMiscellaneous support files, including error messages, character set files, sample configuration files, SQL for database installation杂项支持文件,包括错误消息、字符集文件、示例配置文件、用于数据库安装的SQL