Installing My Sql Under Windows


Published on

PowerPoint presentation showing how to install MySQL on Windows operating systems.

Published in: Education, Technology
1 Comment
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Installing My Sql Under Windows

  1. 1. Installing MySQL under Windows PHP/MySQL Introduction
  2. 2. Download the MySQL installer <ul><li>Go to </li></ul><ul><li>Click on the Downloads link: </li></ul><ul><li>Click the link to go to Community Downloads: </li></ul><ul><li>Scroll down and click the Windows link: </li></ul>
  3. 3. Download the MySQL Installer, continued <ul><li>Click the link to download the Windows Essentials (x86) MSI installer: </li></ul><ul><li>You’ll be asked to register – just click the no thanks link: </li></ul>
  4. 4. Downloading the MySQL Installer, continued <ul><li>Select a mirror site: </li></ul><ul><li>Choose Save File in the dialog that pops up: </li></ul>
  5. 5. Installing MySQL <ul><li>If you are upgrading an existing version of the same series of Windows Essentials to a more recent one, the first dialog box will inform you that it has detected your current installation. You may also see extra dialog boxes connected with the upgrade process. Normally they require no user input, but are there to inform you what is happening. Click Next to continue. </li></ul><ul><li>The installer will not treat the installation of a different series – say from MySQL 4.1 to MySQL 5.1 – as an upgrade, because Windows treats each series as a separate program. </li></ul>
  6. 6. Installing MySQL <ul><li>Once the .MSI file is downloaded, exit all Windows applications and double-click the .MSI file to start the installation. Click the Run button to start the installation </li></ul>
  7. 7. Installing MySQL <ul><li>After a few seconds the Setup Wizard appears: Click the Next button </li></ul>
  8. 8. Installing MySQL <ul><li>Select the Typical installation option: NOTE: on our systems a custom installation was performed. You’ll find MySQL on the root of your hard drive in our lab. </li></ul><ul><li>click Next. </li></ul>
  9. 9. Installing MySQL <ul><li>Confirm the installation information: </li></ul><ul><li>Click the Install button </li></ul>
  10. 10. Installing MySQL <ul><li>The installation will begin: </li></ul>
  11. 11. Installing MySQL <ul><li>Click the Configure the MySQL Server now checkbox: Click Finish. </li></ul>
  12. 12. Configuring MySQL <ul><li>If the Configuration Wizard fails to launch or if you ever need to change any of the settings, you can access it at any time by clicking on the Windows Start button and then choosing Programs > MySQL > MySQL Server 5.1 > MySQL Server instance Config Wizard. </li></ul>
  13. 13. Configuring MySQL <ul><li>When the Configuration Wizard opens with a welcome screen, click Next to proceed: </li></ul>
  14. 14. Configuring MySQL <ul><li>Choose Detailed Configuration Click Next </li></ul>
  15. 15. Configuring MySQL <ul><li>Select Developer Machine: click Next </li></ul>
  16. 16. Configuring MySQL <ul><li>Select Non-Transactional Database Only: click Next </li></ul>
  17. 17. MySQL Configuration <ul><li>What’s the difference between MyISAM and InnoDB? Both have their advantages and drawbacks. MyISAM is faster and uses considerably less disk space to store data. The advantage of InnoDB is that it supports foreign key constraints and transactions– advanced features that are not expected to be available on MyISAM for some time. Foreign key constraints are useful in preserving the integrity of your data. Transactions ensure that a set of SQL queries is performed as a single operation – if one part fails, the whole operation is abandoned. This is important for databases that perform financial transactions, as it prevents money being transferred from one account to another if sufficient funds are not available. </li></ul>
  18. 18. Configuring MySQL <ul><li>You can mix different table types in the same database, and it is very easy to convert an existing table from MyISAM to InnoDB and vice versa. If you’re unsure what to do, select Non-Transactional Database Only. If you ever decide you need InnoDB tables, all you need to do is run the configuration wizard again and choose Multifunctional Database. </li></ul>
  19. 19. Configuring MySQL <ul><li>Select the drive and directory for your InnoDB tablespace if you selected Multifunctional or Transactional Database type in the previous screen. The option will be grayed out if you are upgrading or if you selected Non-Transactional Database only in the previous page of the Wizard. </li></ul>
  20. 20. Configuring MySQL
  21. 21. Configuring MySQL <ul><li>Leave the default setting for the number of connections to the server: </li></ul>
  22. 22. Configuring MySQL <ul><li>Choose the default character set: click Next… </li></ul>
  23. 23. Configuring MySQL <ul><li>Install as a Windows Service: </li></ul>
  24. 24. Configuring MySQL <ul><li>Set TCP/IP settings for MySQL as follows: </li></ul>
  25. 25. Configuring MySQL <ul><li>Windows Service – This setting will allow MySQL to startup automatically when you boot your computer. If MySQL has already been installed as a Windows Service, this section will be grayed out. If for any reason you don’t want MySQL to start automatically, uncheck the Launch the MySQL Server Automatically option. You can easily change this option if you change your mind later. </li></ul><ul><li>The lower half of the dialog box gives you the option to included the bin directory in your Windows PATH (remember the Environment Variables?) This will allow you to interact directly with MySQL and its related utilities at the command line without the need to change directories every time. Make sure this checkbox is selected and click Next. </li></ul>
  26. 26. Configuring MySQL <ul><li>If you get a warning message that says “A Windows service with the name MySQL already exists. Are you sure you want to use the servicename?” it means that MySQL is already installed as a Windows Service. If you click yes, the wizard will continue happily, but then fail at the final hurdle. You must click NO, and choose a different name from the dropdown menu in the Service Name field. </li></ul>
  27. 27. Configuring MySQL <ul><li>Click the Modify Security Settings checkbox in the next step of the wizard and enter a password to allow you to access the root database administrator account. Do not check the Enable root access from remote machines option unless you plan to access your MySQL from a different computer over a network. Do not check the Create an Anonymous account checkbox. This can cause security risks. If you are upgrading, these options will be grayed out. Select the Modify Security Settings checkbox to make any changes. </li></ul>
  28. 28. Configuring MySQL
  29. 29. Configuring MySQL <ul><li>Click Next and then click Execute to run the Configuration Wizard. If you have installed a firewall such as Norton Internet Security, it will probably warn you that MySQL is trying to connect to the DNS server and suggest that you always block it. You must allow the connection, otherwise, MySQL will never work. Configure your firewall to allow inward and outward connections on port 3306, or allow MySQL to connect using all ports. </li></ul>
  30. 30. Configuring MySQL <ul><li>Assuming all is OK you should see this screen: </li></ul>
  31. 31. Configuring MySQL <ul><li>As the configuration process proceeds, each item will be checked off. When all items are checked, click the Finish button. MySQL will be started automatically even if you selected the option to not start automatically. </li></ul>
  32. 32. Congratulations! <ul><li>You’ve now completed the installation and configuration of MySQL… </li></ul>