After you have downloaded a MySQL package, you should make sure that its MD5 checksum matches the one provided on the MySQL download pages. 下载MySQL包后,应确保其MD5校验和与MySQL下载页面上提供的校验和匹配。Each package has an individual checksum that you can verify against the package that you downloaded. 每个软件包都有一个单独的校验和,您可以根据下载的软件包进行验证。The correct MD5 checksum is listed on the downloads page for each MySQL product; you should compare it against the MD5 checksum of the file (product) that you download.每个MySQL产品的下载页面上都列出了正确的MD5校验和;您应该将其与下载的文件(产品)的MD5校验和进行比较。
Each operating system and setup offers its own version of tools for checking the MD5 checksum. 每个操作系统和设置都提供了自己版本的用于检查MD5校验和的工具。Typically the command is named md5sum, or it may be named md5, and some operating systems do not ship it at all. 通常,该命令名为md5sum
,也可能名为md5
,并且某些操作系统根本不提供该命令。On Linux, it is part of the GNU Text Utilities package, which is available for a wide range of platforms. 在Linux上,它是GNU文本实用程序包的一部分,可用于各种平台。You can also download the source code from http://www.gnu.org/software/textutils/. 您也可以从http://www.gnu.org/software/textutils/下载源代码。If you have OpenSSL installed, you can use the command openssl md5 如果安装了OpenSSL,则可以使用命令OpenSSL md5 package_name
instead. package_name
。A Windows implementation of the md5 command line utility is available from http://www.fourmilab.ch/md5/. 可以从http://www.fourmilab.ch/md5/中获得md5命令行实用程序的Windows实现。winMd5Sum is a graphical MD5 checking tool that can be obtained from http://www.nullriver.com/index/products/winmd5sum. winMd5Sum是一个图形MD5检查工具,可以从http://www.nullriver.com/index/products/winmd5sum下载到。Our Microsoft Windows examples assume the name md5.exe.Microsoft Windows示例的名称为md5.exe。
Linux and Microsoft Windows examples:Linux和Microsoft Windows示例:
shell> md5sum mysql-standard-8.0.25-linux-i686.tar.gz
aaab65abbec64d5e907dcd41b8699945 mysql-standard-8.0.25-linux-i686.tar.gz
shell> md5.exe mysql-installer-community-8.0.25.msi
aaab65abbec64d5e907dcd41b8699945 mysql-installer-community-8.0.25.msi
You should verify that the resulting checksum (the string of hexadecimal digits) matches the one displayed on the download page immediately below the respective package.您应该验证生成的校验和(十六进制数字字符串)是否与相应软件包正下方下载页面上显示的校验和匹配。
Make sure to verify the checksum of the archive file (for example, the 请确保验证存档文件(例如,.zip
, .tar.gz
, or .msi
file) and not of the files that are contained inside of the archive. .zip
、.tar.gz
或.msi
文件)的校验和,而不是存档中包含的文件的校验和。In other words, verify the file before extracting its contents.换句话说,在提取文件内容之前先验证文件。