Appendix B. Installing Supplemental Programs

This appendix contains the instructions for installing MySQL, to support the database application in Chapter 5, and Win32All, to support some of the Python Windows integration described in Chapter 9.

Installing MySQL

MySQL is an open-source database server very popular in open-source software development. The following instructions will guide you through the install. However, for the most current information, go to the MySQL website at http://www.mysql.org.

Downloading the MySQL Community Server

In a web browser, navigate to http://dev.mysql.com/downloads. You will see a screen like the one shown in Figure B-1.

FIGURE B-1

Figure B.1. FIGURE B-1

Click the MySQL Community Server link on the sidebar on the left. After you are taken to the next page, you can scroll down to see a list of operating systems, as shown in Figure B-2.

FIGURE B-2

Figure B.2. FIGURE B-2

Click the operating system on which you want to install (these instructions assume you are installing on Windows).

After doing that, you will be taken to a downloads screen, as shown in Figure B-3.

FIGURE B-3

Figure B.3. FIGURE B-3

Scroll down to the bottom of the next page, and click the link "No thanks, just take me to the downloads!"

You will be taken to a page with a list of locations from which you can download. After clicking the ftp link next to a location close to you, you'll see the Security Warning dialog shown in Figure B-4.

FIGURE B-4

Figure B.4. FIGURE B-4

Click Run.

Running the Install

After the download completes, the Welcome screen of the Setup Wizard will appear, as shown in Figure B-5.

FIGURE B-5

Figure B.5. FIGURE B-5

Click Next. Figure B-6 shows the Setup Type dialog that will appear, from which you can select the appropriate install type.

FIGURE B-6

Figure B.6. FIGURE B-6

For the purposes of this book, it's perfectly adequate to perform a "typical" install, so click Next.

You'll be presented with the install confirmation screen, shown in Figure B-7.

FIGURE B-7

Figure B.7. FIGURE B-7

Click Install to begin the install. When the install is completed, you'll see the Wizard Completed dialog shown in Figure B-8.

FIGURE B-8

Figure B.8. FIGURE B-8

Click Finish to configure the MySQL server.

Configuring the MySQL Server

Figure B-9 shows the first page of the Configuration Wizard that appears after the install is completed.

FIGURE B-9

Figure B.9. FIGURE B-9

Click Next. Figure B-10 shows the dialog that appears, from which you can pick a configuration type.

FIGURE B-10

Figure B.10. FIGURE B-10

For the purposes of this book, a standard configuration is sufficient, so click the Standard Configuration radio button and click Next.

In the dialog that appears next, shown in Figure B-11, you can install MySQL as a Windows service and include the MySQL bin directory in the Windows path. Make sure both are checked and click Next.

FIGURE B-11

Figure B.11. FIGURE B-11

You'll then see the dialog shown in Figure B-12, which contains some security options.

FIGURE B-12

Figure B.12. FIGURE B-12

As shown in Figure B-12, enter a root password and click Next. The dialog shown in Figure B-13 will appear.

FIGURE B-13

Figure B.13. FIGURE B-13

Click Execute to run the configuration.

When the configuration is finished, click Exit to close the Configuration Wizard. MySQL is now installed and configured.

Installing Win32All

Win32All is a collection of add-ons and APIs that enable a Python developer to interact with Windows.

Downloading the Win32All Package

Note

Win32All requires that Python (minimum version: 2.2) already be installed on a Windows system.

In a web browser, navigate to http://sourceforge.net/projects/pywin32/. You will see the Python for Windows Extensions window shown in Figure B-14.

FIGURE B-14

Figure B.14. FIGURE B-14

Click the Download the Python for Windows Extensions link. Scroll down the page to the section that is shown in Figure B-15.

FIGURE B-15

Figure B.15. FIGURE B-15

Notice that downloads are available for versions of Python from 2.2 through 2.6. Click the appropriate link for the version of Python you have installed and you'll get a prompt to download the file (assuming the security set for your browser allows you to download files), as shown in Figure B-16.

FIGURE B-16

Figure B.16. FIGURE B-16

Click Run.

Running the Install

After the file downloads, the install will start and the dialog shown in Figure B-17 will appear.

FIGURE B-17

Figure B.17. FIGURE B-17

Click Next. As shown in Figure B-18, you'll be prompted with the location of your version of Python, which the install will locate in the Windows Registry.

FIGURE B-18

Figure B.18. FIGURE B-18

Click Next. Figure B-19 shows the confirmation dialog that will appear.

FIGURE B-19

Figure B.19. FIGURE B-19

Click Next to begin the install. When the install is finished, the dialog shown in Figure B-20 will appear, indicating the log of the successful install.

FIGURE B-20

Figure B.20. FIGURE B-20

Click Finish to exit the install.

Win32All is now installed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.146.155