Install MySQL Database

On Windows

  1. Open MySQL Server in a web browser.
  2. Click on the “Download” button.
  3. Click “No thanks, just start my download.”
  4. Once the file is downloaded, execute it.
  5. In the MySQL Installer window, click on “Install MySQL Products”
  6. Click “I accept the license terms” and then click “Next” on the License Information window
  7. Click “Execute” on the Find latest products window, then click “Next”.
  8. Select “Custom” on the Choosing a Setup Type window
  9. On development machines and single drive servers, change the Data Path to “C:”
  10. On multi-drive servers, change the Data Path to the “DATA” drive
  11. Then click “Next”
  12. On the Feature Selection window
    1. Select Server with all of its subcomponents
    2. On a development machines:
      1. Select Applications and uncheck all of the subcomponents except for MySQL Workbench
      2. Select Documentation with all of its subcomponents.
  13. Then click “Next”
  14. Click “Next” on the Check Requirements window
  15. Click “Execute” on the Installation Progress window, then click “Next”
  16. Click “Next” on the Configuration Overview window.
  17. Choose the appropriate “Config Type” for the machine
  18. Click “Next”
  19. Type a complex password for the root account.
  20. Click “Next”
  21. Change “Windows Service Name” to MySQL
  22. Click “Next”
  23. Click “Next” on the Configuration Overview window to configure the sample database
  24. Click “Next” when that operation completes
  25. Click “Finish” on the Installation Complete window.
  26. Open the Service Control Manager and stop the MySQL service. On a development machine, change the startup type to “Manual”
  27. Open the my.ini file and change the datadir value to “C:\data” instead of “C:\data\data”
  28. Move all of the files and directories from “C:\data\data” to “C:\data”
  29. Delete the “C:\data\data” directory

On Linux

FIXME