MySQL
  Home arrow MySQL arrow Page 7 - MySQL Installation and Configuration
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MYSQL

MySQL Installation and Configuration
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 113
    2004-04-28

    Table of Contents:
  • MySQL Installation and Configuration
  • Choosing Between Binary and Source Distributions
  • Installing and Configuring MySQL (Linux/Unix)
  • Installing MySQL from a Binary Tarball Distribution (Linux/Unix)
  • Installing MySQL from a Source Distribution (Linux/Unix)
  • Installing and Configuring MySQL on Windows
  • Installing MySQL from a Source Distribution (Windows)
  • Testing MySQL
  • Post-Installation Steps

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    MySQL Installation and Configuration - Installing MySQL from a Source Distribution (Windows)


    (Page 7 of 9 )

    While compiling MySQL for Windows from the source archive is not something that’s generally recommended--it’s far safer, not to mention easier, to use the provided binaries--it’s certainly doable, assuming you have a copy of the Visual C++ 6.0 compiler (with Service Pack 5 and the preprocessor package). Here’s how it’s done:

    1. Unzip the source archive to a working directory on your system.

    2. Launch the Visual C++ compiler, and open the mysql.dsw workspace from the working directory. You should see a window like Figure 19.

    MySQL Installation and Configuration
    FIGURE 19  The MySQL workspace in Visual C++

    3. Choose Build | Set Active Configuration to obtain a list of available configurations. Select mysqld – Win32 Release (see Figure 20). Click OK.

    MySQL Installation and Configuration
    FIGURE 20  Selecting which version of MySQL
    to build in Visual C++

    4. Begin compiling by pressing the F7 key. The various MySQL binaries will be compiled--expect the process to take from 20 minutes to an hour, depending on the capabilities of your machine. During the compilation process, the Visual C++ compiler window will display a series of messages, such as those shown in Figure 21.

    MySQL Installation and Configuration
    FIGURE 21  Compiling MySQL for Windows in Visual C++

    5. After compilation is complete, create a separate installation directory to house the compiled binaries--for example, c:\program files\mysql.

    6. Create a bin\ subdirectory under this directory, and move the compiled libraries and executables into this directory. While you’re at it, also move the data\, share\, docs\, and support-files\ directories from the working directory into this directory.

    7. You should now be able to start the MySQL server by diving into the bin\ subdirectory of your MySQL installation and launching the MySQL server daemon directly (mysqld.exe or mysqld-nt.exe).

    Once the server has started, proceed to test it as per the instructions in “Testing MySQL,” next.

    Remember: this is chapter three of MySQL: The Complete Reference, by Vikram Vaswani (McGraw-Hill/Osborne, ISBN 0-07-222477-0, 2004). Vikram is the founder of Melonfire, and has had numerous articles featured on Dev Shed. 
    Buy this book now.

    More MySQL Articles
    More By McGraw-Hill/Osborne


     

       

    MYSQL ARTICLES

    - Take Some Load off MySQL with MemCached
    - MySQL Table Prefix Changer Tool in PHP
    - Using the SIGNAL Statement for Error Handling
    - Error Handling Examples
    - Error Handling
    - Completing a Search Engine with MySQL and PH...
    - Paginating Result Sets for a Search Engine B...
    - Building a Search Engine with MySQL and PHP 5
    - Using Boolean Operators for Full Text and Bo...
    - PHP, MySQL and the PEAR Database
    - Working with PHP and MySQL
    - Getting PHP to Talk to MySQL
    - Creating an RSS Reader: the Reader
    - MySQL Security Overview
    - Creating the Admin Script for a PHP/MySQL Bl...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway