×
☰ See All Chapters

How to install MySQL

MySQL installation steps may vary version to version and depends on OS. The steps provided here are for the below versions.

  • MySql version: mysql-installer-community-8.0.11.0 

  • OS: Windows 10 

Whatever the version and operating system, while installing MySQL note down the port number and password you set. Follow the below steps.

1. Download MySQL Installer from https://dev.mysql.com/downloads/installer/ and execute it.

When you visit the above link, you will get the two download links. Download “mysql-installer-community-8.0.11.0.msi”

how-to-install-mysql-0
 

When you click on Download button, you will be asked to login/signup. MySQL.com is using Oracle SSO for authentication. If you already have an Oracle Web account, click the Login link. Otherwise, you can sign up for a free account by clicking the Sign Up link. If you want to skip this and download, click on “No thanks, just start my download.”

how-to-install-mysql-1
 

2. After downloading “mysql-installer-community-8.0.11.0.msi”, execute it.

how-to-install-mysql-2
 
how-to-install-mysql-3
 

Accept License terms, click Next.

how-to-install-mysql-4
 

Click Next,

how-to-install-mysql-5
 

Click Next

how-to-install-mysql-6
 

Click Execute

how-to-install-mysql-7
 

After installation is complete, click Next

how-to-install-mysql-8
 

Click Next

how-to-install-mysql-9
 

Click Next

how-to-install-mysql-10
 

Note down the port number, and then click next.

how-to-install-mysql-11
 

Click Next

how-to-install-mysql-12
 

Enter the password for your database, and then click next. Don’t forget the password. Note down somewhere if you cannot remember. Without this password you cannot work on JDBC project.

how-to-install-mysql-13
 

Click Next

how-to-install-mysql-14
 

Click Next

how-to-install-mysql-15
 

Click Execute

how-to-install-mysql-16
 

Click Finish

how-to-install-mysql-17
 

Click Next

how-to-install-mysql-18
 

Click Finish

how-to-install-mysql-19
 

Click Next

how-to-install-mysql-20
 

Enter the password you have selected earlier, Click on Check, and then click on Next.

how-to-install-mysql-21
 

Click on Execute

how-to-install-mysql-22
 

Click Finish

how-to-install-mysql-23
 

Click Next

how-to-install-mysql-24
 

Click Finish

how-to-install-mysql-25
 

After all these steps if MySql is installed perfectly it launches the MySql terminal as shown below:

how-to-install-mysql-26
 

Now to work with MySql DB, we can use MySql Workbench, this is explained in next chapter.

 


All Chapters
Author