11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.infoC H A P T E R 26• • •Installing and Configuring <strong>MySQL</strong>This chapter guides you through <strong>MySQL</strong>’s installation and configuration process. It is not intended as areplacement for <strong>MySQL</strong>’s excellent (and mammoth) user manual, but instead highlights the keyprocedures of immediate interest to anybody who wants to quickly and efficiently ready the databaseserver for use. The following topics are covered:• Downloading instructions• Distribution variations• Installation procedures (source, binary, RPMs)• Setting the <strong>MySQL</strong> administrator password• Starting and stopping <strong>MySQL</strong>• Installing <strong>MySQL</strong> as a system service• <strong>MySQL</strong> configuration and optimization issues• Reconfiguring <strong>PHP</strong> to use <strong>MySQL</strong>By the chapter’s conclusion, you’ll have learned how to install and configure an operational <strong>MySQL</strong>server.Downloading <strong>MySQL</strong>Two editions of the <strong>MySQL</strong> database are available: <strong>MySQL</strong> Community Server and <strong>MySQL</strong> EnterpriseServer. You should use the former if you don’t require <strong>MySQL</strong>’s array of support, monitoring, andpriority update services. If any or all of the aforementioned services might appeal to you, learn moreabout <strong>MySQL</strong> Enterprise at www.mysql.com/products/enterprise. This book presumes you‘re using theCommunity Server edition, which is available for free download via the <strong>MySQL</strong> Web site.To download the latest <strong>MySQL</strong> version, navigate to www.mysql.com/downloads. From there you’ll beable to choose from ten different supported operating systems, or you can download the source code.If you’re running Linux or OS X, I strongly recommend installing <strong>MySQL</strong> using your distribution’spackage manager. Otherwise, you can install <strong>MySQL</strong> using available RPMs or the source code from<strong>MySQL</strong>.com. I’ll guide you through the process of installing <strong>MySQL</strong> from both RPM and source later inthis chapter.If you’re running Windows, a total of seven different downloads are available for the Windowsplatform, although only two are really relevant to the vast majority of users, namely the MSI InstallerEssentials version which is available for both 32-bit and 64-bit platforms. In both cases, the Essentials487

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!