Page 8 - Payout Magazine Online Volume 9.4
P. 8
MySQL
Step-By-Step
Installation Guide
MySQL is the most popular open source Go to the MySQL Community Server, select Now, you should have two folders:
database being used today. In addition Windows, and download the version labeled D:MySQLdatatest and D:MySQLdatamysql.
to its fast database engine, it’s easy to set up, Without installer. You can remove the original C:mysqldata
simple to use, and well-integrated with PHP, folder.
making it a great candidate for a variety of web As is good practice, scan the file for viruses
applications. and use a tool to check the MD5 checksum � Step 4 - Create a my.ini Configuration File
prior to download.
While there are versions of MySQL available There are several configuration methods
for Mac, Linux, and a number of other operating � Step 2 - Extract the Files for MySQL, but creating a my.ini file within the
systems, Windows remains the most popular mysql folder is generally the easiest. While
OS for a variety of reasons. Today, we’ll have a Extract the file to your C: drive and change you can tweak MySQL hundreds of different
step-by-step look at how to easily install MySQL the folder name from “mysql-x.x.xx-win32” to ways to meet your exact requirements, the
on Windows both manually and by using the simply “C:mysql”. most basic and simple my.ini file is:
MySQL installer.
You can install MySQL anywhere on your • [mysqld]# installation
Manually Install MySQL Windows system. If you would prefer a lighter directorybasedir=”C:/mysql/”# data
installation, all of the sub-folders except for directorydatadir=”D:/MySQLdata/”
The MySQL Installation Wizard and many all- scripts, data, share, and bin can be removed.
in-one Windows packages can make installing � Step 5 - Test the Installation
MySQL a quick and easy process. However, � Step 3 - Move the Folder
manually installing MySQL will provide you with Runnning C:mysqlbinmysqld.exe will start
more control and allow you to learn much more While this step is optional, it is a good the MySQL server. You will also need to open
about the system. idea to move the data folder to another drive a command box and enter these commands:
or a partition in order to make re-installation
� Step 1 - Download MySQL and backups easier. To do so, create a • cd mysqlbinmysqld
D:MySQLdata folder and transfer the data
The first step in manually installing MySQL is from the C:mysqldata folder into it. This command will run the MySQL server,
to download it from dev.mysql.com/downloads/. which will listen for requests via localhost port
8 PayOutMagazine