ColdFusion has the ability to communicate with a number of different databases, which will be covered later on in this course; for the sample application we will be working on throughout the course, we will be using MySQL. If you already have MySQL 4 or 5 already installed, you can proceed to the 'Install Sample Files' section. If not, follow the steps below:
- Open up a browser and go to: http://dev.mysql.com/downloads/mysql/
-
Scroll to the list of available downloads. Click the 'Download' button next to the applicable download.
- Windows 64 bit - Windows (x86, 64-bit), MSI
- Windows 32 bit - Windows (x86, 32-bit), MSI
- To begin the download, you must either login using pre-existing credentials by clicking the 'Proceed' button under the New Users section or click the 'No thanks, just start my download' link at the bottom of the screen.
- Save the file to your desktop.
- Double click the file.
- On the Welcome screen click 'Next'.
- Accept the terms in the license agreement and click 'Next'.
- When presented with a list of available Setup Types, Select 'Typical'.
- When ready to install, click 'Install'.
- If a system message pops up asking if you want the software to be installed on your machine, click 'Yes'.
- If a MySQL enterprise pop up window appears, click 'Next' until it disappears.
- When the Setup Wizard has completed, Click 'Finish'.
- If you receive another pop up message asking if you want the software to be installed on your machine, click 'Yes'.
- When the Server Instance Configuration Wizard displays, Click 'Next'.
- When displayed the available Server Instance Configuration types select 'Standard Configuration' and click 'Next'.
- When on the Windows Options scree, keep 'Install as a Service' selected as well as 'Launch the MySQL Server automatically'. Select the 'Include Bin Directory in Windows PATH' option and select 'Next'.
- On the Security Options scree, specify a new root password and select 'Next'. Remember this password as it will be needed later!
- When the Ready to Execute screen displays, click 'Execute'.
- After all the Configuration steps have successfully run, Click 'Finish'.
- You have successfully installed MySQL.
- Open up a browser and go to: http://dev.mysql.com/downloads/mysql/
-
Scroll to the list of available downloads. Click the 'Download' button next to the applicable download.
- Mac 64 bit - Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive
- Mac 32 bit - Mac OS X ver. 10.6 (x86, 32-bit), DMG Archive
- To begin the download, you must either login using pre-existing credentials by clicking the 'Proceed' button under the New Users section or click the 'No thanks, just start my download' link at the bottom of the screen.
- Save the file to your desktop.
- Double click the file.
- Once the DMG has mounted, double click the mysql-5.5.28-osx10.6-x86_64.pkg (or similar) file. It should be the first file in the list.
- On the welcome screen, click 'Continue'.
- Review the Important Information screen and click 'Continue'.
- Review the Software License Agreement and click 'Continue'.
- Agree to the terms.
- Select the drive you wish to install the software to and click 'Continue'.
- Click 'Install'.
- Provide your system password and click 'OK'.
- Once you receive the screen stating the Installation was Successful, click 'Close'.
- Double click the MySQL.prefPane icon.
- Click 'Install'.
- If the MySQL server is not running, click the 'Start MySQL Server' button.
- If prompted, provide your system password and click 'OK'.
- Click the 'Automatically Start MySQL Server on Startup' check box.
- Close the window.
-
Open up a terminal window and enter the following:
/usr/local/mysql/bin/mysqladmin -u root password [NewPassword] - Make sure to replace [NewPassword] with the password you wish to use for the root user. Remember this password, it will be needed later.
- Close the Terminal window.
- You have successfully installed MySQL.