Learning Mysql


Verifying Package Integrity with MD5



Download 4.24 Mb.
View original pdf
Page29/366
Date04.08.2023
Size4.24 Mb.
#61806
1   ...   25   26   27   28   29   30   31   32   ...   366
Learning MySQL
Verifying Package Integrity with MD5
When downloading files from the Internet, it’s a good idea to ensure that what you’ve got is what you wanted to get. Fora production server, we recommend that you check the integrity of packages that you download. A simple way to do this is to compare checksums generated by a digest algorithm such as MD5.
A digest algorithm takes some data (for example, an RPM file) as input and calculates a bit number, or checksum, from this data. With a good digest algorithm, it’s practically impossible to change the data without changing the checksum, so if the check- sums of two files match, you can be certain that the files are identical.
22 | Chapter 2:
Installing MySQL

On the MySQL download page, you’ll see a different string of characters such as:
MD5: 0d2a3b39e7bb4109b2f7b451b7768f34
next to each file. You should ensure that the checksum of the file you have downloaded matches the corresponding value on the downloads page.
On Linux, use the md5sum program on the downloaded file md5sum mysql-standard-5.0.22-linux-i686.tar.gz
0eaa7a8ec18699ce550db1713a27cda3 mysql-standard-5.0.22-linux-i686.tar.gz
The filename is shown in italic in this example because the name is likely to change, and you’ll have to type in the actual name of the file you download.
On Windows, you can download and use the free winMd5Sum program from http://
www.nullriver.com/winmd5sum. This program is very easy to use just install and start the program, press the “
” button to browse for and select the downloaded file, and
Figure 2-2. The MySQL AB downloads page
Downloading and Verifying Files from the MySQL AB Web Site | 23

then read off the checksum value. Figure 2-4 shows what this program’s dialog box looks like. On Mac OS X, open a terminal window and use the md5
program:
$ md5 mysql-standard-5.0.22-osx10.4-i686.dmg
MD5
(mysql-standard-5.0.22-osx10.4-i686.dmg) =
b7d7f0878503db504e1eaed5d2518f4e
Digitally signed packages offer a more secure way to ensure that files have not been tampered with however, MD checksums should be sufficient for most readers of this book.
Figure 2-3. The Linux section of the MySQL downloads page

Download 4.24 Mb.

Share with your friends:
1   ...   25   26   27   28   29   30   31   32   ...   366




The database is protected by copyright ©ininet.org 2024
send message

    Main page