Hello Sunil
Step by step Instruction to Install MySQL on Windows 10

Step by step Instructions to Install MySQL on Windows 11

Here are steps which you need to follow to get started with MySQL from Windows command prompt:

Step 1: Type “System” in the search box on Windows taskbar, and select the result.

Search system from windows start menu - Install MySQL on Windows

Step 2: Click on “Advanced system settings.”

Click on advanced system settings - Install MySQL on Windows

Step 3: Select “Advanced” then click on “Environment Variables.”

Environment Variables - Install MySQL on Windows

Step 4: Select “Path” and click on “Edit” button.

Edit on path - Install MySQL on Windows

Step 5: Click on “New” button and add “C:\Program Files\MySQL\MySQL Server 8.0\bin” (the exact may differ depending upon version and architecture of the application) to the list. Click “OK” button.

bin folder to path environment variable  - Install MySQL on Windows

Click two times more “OK” button to save the settings.

Step 6: Open run command by using keyboard shortcut “CTRL + R” and type “CMD” and click on “OK” button.

Run command  - Install MySQL on Windows

Step 7: Type “mysql –user=root –password=[enter_your_password]” and hit enter.

Access mysql root user via windows command prompt - Windows Command Prompt - Install MySQL on Windows

Step 8: Now you can start working with MySQL from Windows command prompt, to show all databases available currently on MySQL server type the following command:

SHOW DATABASES;

Show all databases on local MySQL server - Windows Command Prompt - Install MySQL on Windows

MySQL Workbench

Sometimes working with MySQL through command line is cryptic, It creates typo error and real development not possible with command line interface. MySQL Workbench is best alternative solution for command line.

Here are steps which you need to follow to get started with MySQL Workbench:

Step 1: Type “MySQL Workbench” in the search box on Windows taskbar, and select the result.

Start MySQL Workbench  from start menu - Install MySQL on Windows

Step 2: Click on “root” user from the welcome screen.

Click on root user from welcome screen - Install MySQL on Windows

Step 3: Enter root user password.

Enter root user password -  MySQL Workbench  - Install MySQL on Windows

Step 4: Now you can start working with MySQL Workbench, to show all databases available currently on MySQL server type the following command:

SHOW DATABASES;

See all currently available databases -  MySQL Workbench  - Install MySQL on Windows

Conclusion

This article is pretty short, but more focus towards create MySQL development environment on Windows 11 operating system. By completing this tutorial, you have learned how to install MySQL on Windows 11 platform using MySQL installer.

We have also introduced you few command line tool built into MySQL and how to login into that system. Thanks for reading this article and if you have any questions or comments, then leave them below.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Sunil Pradhan

Hi there 👋 I am a front-end developer passionate about cutting-edge, semantic, pixel-perfect design. Writing helps me to understand things better.

Add comment

Stay Updated

Want to be notified when our article is published? Enter your email address below to be the first to know.

Sunil Pradhan

Hi there 👋 I am a front-end developer passionate about cutting-edge, semantic, pixel-perfect design. Writing helps me to understand things better.