Linux Installation Instructions

Team-Fly    

 
Sams Teach Yourself SQL in 24 Hours, Third Edition
By Ronald R. Plew, Ryan K. Stephens
Table of Contents
Appendix B.  Using MySQL for Exercises


Use the following instructions if you will be installing MySQL on a computer with Linux. Note that steps 16 may vary according to the format of the www.mysql.com Web site and the version of MySQL.

graphics/note_icon.gif

MySQL provides both RPM and Zip files for the MySQL installation on Linux, depending on the platform. The recommended installation method for MySQL on Linux is to use the RPM files. However, Zip files are available for certain installations of Linux. Please refer to the MySQL online documentation to determine the best installation method for your version of Linux.


graphics/note_icon.gif

If you have Red Hat Linux 7.1, MySQL should already be included with Linux.


  1. Go to www.mysql.com to download MySQL.

  2. Select downloads from the main menu.

  3. Select the latest stable version, currently MySQL 3.23.

  4. Review the provided information about version 3.23.

  5. Find the appropriate Linux download for your system, then click on the Download selection. More than likely, you will need to download and install the following file: MySQL-client-VERSION.i386.rpm.

  6. Select a mirror site for download that is close to your location. Save the file to your computer.

  7. Copy the file MySQL-client-VERSION.i386.rpm to your Linux computer.

  8. Execute the following command as root to install MySQL. This is the standard minimal installation. If you are new to Linux, it is best practice to log in as a non-root user, and then use the su command to switch to the user root.

     shell> rpm -i MySQL-VERSION.i386.rpm MySQL-client-VERSION.i386.rpm 
  9. After installation, MySQL data should be located in /var/lib/mysql. The exact location may vary according to platform and version of MySQL. Please verify this information with the applicable documentation for MySQL.

  10. Once MySQL is successfully installed, test the software installation by following the instructions in the post-installation portion of the online documentation.

  11. If all the above steps were successful, you are ready to use MySQL for exercises in this book.

If you experience problems during the installation, uninstall MySQL and repeat the previous steps. If you are still unable to obtain or install MySQL, contact MySQL for support.

graphics/note_icon.gif

MySQL is also available for MacOS and most other versions of Unix.



Team-Fly    
Top
 


Sams Teach Yourself SQL in 24 Hours
Sams Teach Yourself SQL in 24 Hours (5th Edition) (Sams Teach Yourself -- Hours)
ISBN: 0672335417
EAN: 2147483647
Year: 2002
Pages: 275

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net