Installing My Sql Under Windows
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Installing My Sql Under Windows

  • 4,687 views
Uploaded on

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

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

More in: Education , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
4,687
On Slideshare
4,676
From Embeds
11
Number of Embeds
3

Actions

Shares
Downloads
66
Comments
1
Likes
0

Embeds 11

http://www.slideshare.net 9
http://www.linkedin.com 1
https://www.linkedin.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Installing MySQL under Windows PHP/MySQL Introduction
  • 2. Download the MySQL installer
    • Go to http://www.mysql.com
    • Click on the Downloads link:
    • Click the link to go to Community Downloads:
    • Scroll down and click the Windows link:
  • 3. Download the MySQL Installer, continued
    • Click the link to download the Windows Essentials (x86) MSI installer:
    • You’ll be asked to register – just click the no thanks link:
  • 4. Downloading the MySQL Installer, continued
    • Select a mirror site:
    • Choose Save File in the dialog that pops up:
  • 5. Installing MySQL
    • 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.
    • 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.
  • 6. Installing MySQL
    • 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
  • 7. Installing MySQL
    • After a few seconds the Setup Wizard appears: Click the Next button
  • 8. Installing MySQL
    • 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.
    • click Next.
  • 9. Installing MySQL
    • Confirm the installation information:
    • Click the Install button
  • 10. Installing MySQL
    • The installation will begin:
  • 11. Installing MySQL
    • Click the Configure the MySQL Server now checkbox: Click Finish.
  • 12. Configuring MySQL
    • 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.
  • 13. Configuring MySQL
    • When the Configuration Wizard opens with a welcome screen, click Next to proceed:
  • 14. Configuring MySQL
    • Choose Detailed Configuration Click Next
  • 15. Configuring MySQL
    • Select Developer Machine: click Next
  • 16. Configuring MySQL
    • Select Non-Transactional Database Only: click Next
  • 17. MySQL Configuration
    • 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.
  • 18. Configuring MySQL
    • 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.
  • 19. Configuring MySQL
    • 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.
  • 20. Configuring MySQL
  • 21. Configuring MySQL
    • Leave the default setting for the number of connections to the server:
  • 22. Configuring MySQL
    • Choose the default character set: click Next…
  • 23. Configuring MySQL
    • Install as a Windows Service:
  • 24. Configuring MySQL
    • Set TCP/IP settings for MySQL as follows:
  • 25. Configuring MySQL
    • 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.
    • 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.
  • 26. Configuring MySQL
    • 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.
  • 27. Configuring MySQL
    • 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.
  • 28. Configuring MySQL
  • 29. Configuring MySQL
    • 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.
  • 30. Configuring MySQL
    • Assuming all is OK you should see this screen:
  • 31. Configuring MySQL
    • 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.
  • 32. Congratulations!
    • You’ve now completed the installation and configuration of MySQL…