Как установить MySQL Workbench в Windows 10

На официальном сайте разработчика Oracle доступно несколько версий MySQL: для Windows, Linux и Solaris. Для установки Windows-версии предусмотрено два типа установщика: автономный и веб-установщик, загружающий необходимые файлы с сервера компании.
- Посетите сайт разработчика, выберите из выпадающего списка операционную систему (Windows), укажите подходящий тип установщика и нажмите кнопку «Download».

- На следующей странице сервис предложит пройти процедуру регистрации или войти на сайт с уже существующей учетной записью Oracle. Этот шаг не является обязательным, чтобы приступить к немедленному скачиванию дистрибутива, щелкните по «No thanks, just start my download».

Этап 2: Установка дистрибутива
Основной этап, на котором выполняется развертывание выбранных компонентов приложения в операционной системе Windows 10.
- Запустите скачанный файл mysql-installer-web-community.msi или mysql-installer-community.msi двойным кликом. Выберите один из режимов установки:
- «Developer Default» – режим по умолчанию, в котором выполняется установка всех ключевых компонентов.
- «Server only» – установка только серверной части приложения.
- «Client only» – установка только клиентской части приложения.
- «Full» – установка всех компонентов СУБД.
- «Custom» – выборочная установка. Пользователь сам выбирает, какие входящие в состав СУБД компоненты ему нужны.
- «User Name» – имя пользователя.
- «Host» — хост, с которого пользователь будет авторизовываться.
- «Role» — роль пользователя для работы в СУБД.
- «Password» и «Confirm Password» – поля для ввода пароля создаваемого пользователя.
Этап 3: Проверка подключения
Это завершающий этап установки реляционной базы данных MySQL, на котором пользователю нужно будет подключиться к серверу.
-
Нажмите «Next» в текущем окне, затем введите ранее придуманный пароль суперпользователя (root) и воспользуйтесь кнопкой «Check». При этом статус подключения должен обозначиться как «Connection succeeded». Кнопкой «Next» переходите далее.
Если все сделано правильно, должно открыться окно «Командной строки» и окно приложения с приветствием «Welcome to MySQL Workbench».
Установка MySQL 8.0 + Worbench на Windows 7/8/10+ #
Используя данную инструкцию вы сможете установить и настроить сервер базы данных MySQL, а также установить графическую оболочку для работы с базой данной в удобном виде.
1. Скачивание установщика MySQL Server #
Будем устанавливать MySQL как сервис в систему, нам будет необходима любая версия 8.0.x.
Скачиваем Windows Installer с официального сайта по этой ссылке:
Убедитесь что выбрана Windows в списке операционных систем и нажмите кнопку Download у версии с большим размером. Это версия не требует ничего качать их интернета при установке.

После будет предложено зарегистрироваться, мы этого избегаем нажимая по ссылке No thanks, just start my download.

После нажатия начнется скачивание файла вида mysql-installer-community-8.0.23.0.msi
Дождитесь окончания скачивания файла и после запустите скаченный файл.
2. Установка #
При запуске MySQL installer, первое что вам предложат — выбрать тип установки.
Выберите Сustom , в таком случае нам надо будет выбрать что установить

В списке выберем сам сервер баз данных, графическую среду работы с базам данных Workbench, и консоль для работы с базой данных. Для добавления нужных элементов, выберите в левом списке и нажмите одинарную стрелку указывающую вправо, в итоге вы должны получить следующий набор:

Выбирайте самую последнюю версию из списка, в нашем случае это 8.0.23, если на момент установки у вас версия выше — выбирайте версию соответсвующую скаченному файлу mysql-installer-community-8.0.23.0.msi
Нажимайте Next.
После этого установщик проверит, какие зависимости необходимо до установить, перед началом установки MySQL, это различные библиотеки. Список будет выглядеть так:

Для запуска скачивания и установки библиотек, нажмите Execute
В процессе установки дополнительных библиотек, вам будут предлагаться принять соглашения и установить.

После установки необходимых библиотек, у вас должны быть все зеленые отметки (на скриншоте подсвечено желтым).

В следующем окне вам будет еще раз показан список того что будет установлено, нажимайте Execute

Пойдет процесс установки, это может занять продолжительное время, до 15 минут.
В конечно итоге при успешной установке увидите:

После нажатия Next перейдете к настройке сервера базы данных.

В следующем окне галочки должны быть расположены как указано, а также обратите внимание на параметр Port , этот порт будет использоваться при подключении к серверу для работы с базой данных через Workbench или другой клиент.

Нажимаем Next и переходим к выбору типа пароля, в данном случае выбираем Use Strong Password Ecryption , так как нам не требуется совместимость с версией 5.7

После нажатия Next, будет важный этап — установка пароля для root пользователя.

Дополнительных пользователей создавать не будем, для учебных целей будем пользоваться доступом через пользователя root . В реальности, для каждой бд желательно иметь пользователя с минимальным набором прав для работы с базой данных.
Нажимаем Next и переходим к настройке сервиса в Windows

По умолчанию MySQL будет установлен как сервис, с указанным названием. База данных будет стартовать при запуске Windows, отдельно включать ее не потребуется.
Кликайте по Next и перед вам будет список действий, которые выполнятся в итоге:

Запускаем нажатием Execute, и ожидаем завершения:

Если перед вами такое же окно — поздравляем, установка прошла успешно! Осталось нажать Finish, в следующем окне Next и в последнем окне можно снять галочки.

Мы запустим нужное по необходимости. Осталось нажать на Finish — установка завершена полностью.
3. Проверка установки #
Чтобы убедиться что mysql сервер работает, давайте попробуем зайти в консоль управления mysql, для этого нажмите Пуск и вы папке MySQL выберите MySQL 8.0 Command Line Client — Unicode
После запуска будет предложено ввести пароль, надо ввести тот пароль, что мы и задавали.

После успешного ввода пароля, попадем в терминал mysql, именно тут можно вводить команды SQL, для проверки запросим данные по всем таблицам:

Именно в данной консоли можно выполнять все команды показанные в видео.
После этого можно выйти из терминала командой exit
Проверка прошла успешно и установка точно прошла успешна!
4. Подключение к серверу БД используя Workbech #
Найдите в списке программ в Пуске — Workbench

Запускайте, на первом окне у вас будет список подключений и одно подключение уже создано

это подключение к установленной бд, кликните по нему и вам предложат ввести пароль от пользователя root — вводите.

И теперь мы можем работать с базой данных:

5. Создание новой базы данных #
Чтобы загрузить дамп, необходимо создать базу данных в которую мы загрузим данные. Для этого нажмите на вкладку Schemas

На пустом месте кликните правой клавишей мыши и выберите пункт меню — Create Schema.

Введите название базы данных: skillbox
Выберите кодировки utf8 и utf8_general_ci

Вам покажут какой SQL запрос при этому будет выполнен, нажимаем Apply и получаем пустую базу данных.


6. Загрузка дампа #
К видеоуроку курса или домашнему заданию у вас будет прикреплен файл в котором хранятся данные учебной базы skillbox. Формат файла .sql
В нем хранится структура таблиц и данные которые в таблицах хранятся. Это все написано на SQL, поэтому наша задача выбрать в какой бд выполнить этот код.
Выберем базу данных по умолчанию, в которой будут выполняться все скрипты по умолчанию.
Для этого нажмите правой кнопкой мыши на базу данных skillbox и далее Set as default Schema

Выбранная база выделяется.
Далее в меню выберите File → Open SQL Script.

Выберите скаченный файл .sql, когда откроется, будет выглядеть так:

Осталось запустить, нажав на молнию, внизу в консоли увидите лог работы скрипта:

После того как выполнился код дампа, и видите зеленые галки, то обновите дерево баз данных, нажав на кнопку:

Зайдите в базу данных и откройте таблицу в режиме просмотра:

Вы увидите содержание таблицы:

На этом загрузка дампа завершена, с базой данной можно работать.
7. Как писать запросы #
Для того чтобы писать запросы к базе данных для выполнения домашнего задания, вы можете использовать Workbench, для этого вам надо выделить базу данных skillbox как базу по умолчанию. Для этого нажмите правой кнопкой мыши на базу данных skillbox и далее Set as default Schema
И после создать новый запрос кнопкой:

И в открывшемся файле пишите запрос, например:

Для выполнения запроса, также нажимайте на первую молнию, это команда выполнения всего текста запроса.
И у вас должен появится результат, в виде таблицы:

А значит запрос успешно выполнен. Таким образом вы можете выполнять домашние задания модуля.
WHAT IS MYSQL?
MySQL is a very popular DBMS, it is actively used on the Internet as a system for storing data on sites, in other words, the vast majority of sites on the Internet to store their data use MySQL.
Recently I have been analyzing data from several official ratings of DBMS popularity and other statistical information in order to determine which DBMS is really the most popular, and as a result, MySQL is currently the most popular DBMS in the world. You can get acquainted with all the results of my analysis in the material — TOP 5 popular database management systems.
MYSQL 8 EDITIONS
MySQL 8 is released in several editions:
MySQL Standard Edition
MySQL Standard Edition is an edition with standard functionality that allows you to implement high-performance, reliable and scalable applications.
MySQL Enterprise Edition
MySQL Enterprise Edition — this edition includes full functionality and a set of additional tools that are designed to achieve the highest scalability, security and reliability.
MySQL Cluster Carrier Grade Edition
MySQL Cluster (CGE) is a distributed database that combines linear scalability and high availability. It is designed for critical applications.
MySQL Community
MySQL Community Edition is a free edition, which can be downloaded absolutely freely from the official MySQL website. The Editorial Office supports all the necessary functionality to implement full-fledged Internet resources.
More information about MySQL Edition can be found on the official website — https://www.mysql.com/products/.
STEP-BY-STEP INSTALLATION OF MYSQL 8 ON WINDOWS 10
Now we will take a step-by-step look at the whole process of installing MySQL 8 in Community edition on Windows 10.
Besides MySQL Server, we will also install MySQL Workbench — a tool used for database development and administration of MySQL Server.
Note! To install MySQL 8 on Windows 10 you need Microsoft .NET Framework 4.5.2 or higher.
STEP 1 — DOWNLOAD MYSQL 8 FOR WINDOWS 10
To proceed to the installation of MySQL 8, you must first download the MySQL distribution kit.
You can download MySQL 8 in Community edition, as it was already mentioned, absolutely free from the official website, here is the link to the download page — https://dev.mysql.com/downloads/installer.
After going to the page you can choose how to download the distribution, we offer two ways:
- Download Web Installer — a small program that downloads all necessary components for MySQL installation. You can use it to install MySQL on computers that have the Internet;
- Download Full Installer — the MySQL distribution kit that includes all the necessary components. In this case you can use this distribution to install MySQL on a computer with or without access to the Internet. For example, you can download this file on a computer with Internet access and use it to install MySQL on another computer that has no Internet access.
For example, let’s download the full MySQL distribution, for this click “Download” opposite the corresponding item.
Then we are asked to login using Oracle accounts, if any, or to register, thereby creating an Oracle account.
However, if you don’t want to, there is a link “No thanks, just start my download” at the bottom of the page, by clicking on which MySQL download will start immediately.
Click on this link and wait for the download to complete.
As a result, you should download the mysql-installer-community-8.0.18.0.msi file, which is about 415 megabytes in size.
STEP 2 — RUN THE INSTALLATION AND CHOOSE MYSQL INSTALLATION TYPE
Then we launch the downloaded file and the MySQL installer will be launched. First we choose the type of installation.
We’re being offered several options:
- Developer — is the default option, it assumes installation of all that a developer needs, this is both MySQL Server and MySQL Workbench and other tools for working with MySQL;
- Server Only — this option assumes installation of MySQL server only;
- Client Only — this option assumes installation of the client part only to work with MySQL Server, i.e. the server part will not be installed;
- Full — install all components included in the distribution kit;
- Custom — selective installation, in this case you can install only what you need.
The default option, i.e. Developer, is suitable for most cases, especially if you are installing MySQL on your home computer for some purpose (learning MySQL, learning SQL, etc.).
I leave this option, click “Next”.
STEP 3 — CHECKING AND INSTALLING ADDITIONAL COMPONENTS
The installer will then check the system for components that are required for some MySQL extensions to work.
In my case the installer generated two warnings for MySQL For Excel and MySQL For Visual Studio extensions.
If you plan to use these components, you need to eliminate these warnings. To do that, you in turn need to install these components (i.e. select them and press “Execute”, some of them can be installed automatically).
However, if you will not use MySQL For Excel and MySQL For Visual Studio extensions, you can press “Next” right away.
The installer will warn you if some components are missing by clicking “Yes”.
STEP 4 — INSTALLING MYSQL COMPONENTS
Everything is ready for MySQL installation, at this step the installer will display all MySQL components that are ready for installation, click “Execute”.
As a result, the serial installation of MySQL components will begin.
STEP 5 — FINISHING THE MYSQL COMPONENT INSTALLATION
When a green checkmark appears opposite each item, the setting is complete. Press “Next”.
STEP 6 — CONFIGURING MYSQL COMPONENTS
All components are installed, but not all are configured, so we need to configure them. The installer will show you which specific components you need to configure. In our case it is MySQL Server, MySQL Router and Samples and Examples. Click “Next”.
STEP 7 — CONFIGURING MYSQL SERVER (HIGH AVAILABILITY PARAMETER)
First of all, we need to configure MySQL Server.
The first thing we need to do is to configure the “High Availability” parameter which is responsible for how MySQL Server will be installed.
In our case, as in most others, we need a standard “Standalone MySQL Server” — this is a classic version of MySQL Server installation.
So we select the first item and click “Next”.
STEP 8 — CONFIGURING MYSQL SERVER (TYPE AND NETWORKING)
Then we configure the server type and network. In our case you can leave everything by default:
- Type — Development Computer;
- Protocol — TCP/IP;
- Port — 3306;
- Tick “Open Windows Firewall ports for network access”.
If necessary, you can fine-tune MySQL Server using advanced settings. To do this, tick the “Show Advanced and Logging Options” checkbox.
Click “Next” to continue.
STEP 9 — CONFIGURING THE AUTHENTICATION METHOD IN MYSQL SERVER
8 version of MySQL supports the new authentication method, which is recommended to use, leave it as is and click “Next”.
If necessary, you can select the second item that was used in MySQL 5.
STEP 10 — CONFIGURING MYSQL USERS
After that we need to come up with a password for user root (this is the main administrator of MySQL).
In addition, we can add more users to do this by clicking on “Add User”.
And enter the necessary data:
- User Name — enter a user name;
- Host — leave “All Hosts”;
- Role — select the role of the user;
- Password and Confirm Password — create and enter the password that this user will have.
Click “OK”.
After that the user will be created.
Click “Next” to continue.
STEP 11 — CONFIGURING MYSQL SERVICE IN WINDOWS
Now we need to configure the MySQL service that will work in Windows.
We can set it up:
- Windows Service Name;
- Start the MySQL Server at System Startup — if this checkbox is enabled, the MySQL service will be started when Windows starts;
- Run Windows Service — on behalf of which account MySQL service will work in Windows. Standard System Account is a system account.
You can leave it as default, that’s what I do.
Click “Next”.
STEP 12 — APPLYING MYSQL SERVER SETTINGS
All MySQL Server settings are configured, but we still need to apply and save them. To do this, on the next window click “Execute”.
STEP 13 — FINISHING MYSQL SERVER CONFIGURATION
When all the checkboxes have been placed and the “Successful” message is displayed, the process will be completed, click on “Finish”.
The status of MySQL Server will be changed to “Configuration complete”.
To continue configuration, click “Next”.
STEP 14 — CONFIGURING MYSQL ROUTER
In this case, we are offered to configure the MySQL router, but it is not necessary, we can immediately click “Finish”.
Click on “Next” to proceed to the next component setting.
STEP 15 — INSTALLING TEST DATA ON MYSQL
Then we can install test data on MySQL Server, for example, for training. To do this, enter the Root user password and click on “Check” to check, if the connection is established, then everything is fine and we can continue.
Click on “Next”.
To apply all parameters and start extracting test data on MySQL Server, click “Execute”.
The process will be completed when the “Successful” message is ticked and displayed.
Click on “Finish”.
STEP 16 — FINISHING MYSQL COMPONENT CONFIGURATION
All components are configured. Press “Next”.
STEP 17 — COMPLETING THE ENTIRE MYSQL INSTALLATION AND CONFIGURATION PROCESS
MySQL Server and all the necessary components to work with it are installed and configured: these are MySQL Workbench, and various connectors, documentation, and even a test database.
To start MySQL Workbench immediately after installation, tick the “Start MySQL Workbench after Setup” box.
Click “Finish”.
RUNNING MYSQL WORKBENCH
After installing MySQL, all the necessary shortcuts that you can use will appear in the Windows 10 menu.
For example, you can use the appropriate shortcut to run “MySQL Workbench 8” environment.
CONNECTING TO MYSQL USING MYSQL WORKBENCH
To connect to MySQL server and look at database objects, tables, views and so on, run MySQL Workbench, for example, as described above.
This will open MySQL Workbench, where on the start page we already have one connection to the local server, which will be carried out as root.
Click on it.
Then we enter the password to save it and not to enter it every time we connect, we can check “Save password in vault”.
Click “OK”.
As a result, we will connect to the server, and in order to view the data schema, we need to go to the “Schemas” tab in the navigator window.
In addition, we can hide unnecessary windows, to do this we can use special icons in the upper right side of MySQL Workbench.
We will see the data schema, now we can see what objects are in the database and, for example, learn to write SQL queries.
For clarity, I have hidden a side window.
In this example, we sent a SELECT query to select data from the address table. As you can see, the data has returned and everything works.
How to Install MySQL on Windows: A Simple Guide (2023)
MySQL is one of the most popular database management systems (DBMS) available. It’s light, open-source, and easy to install and use, which makes it a good choice for those starting to learn and work with relational databases.
Although it’s a good option for beginners, MySQL is also robust enough to support larger production applications, with multi-users and multithreading support.
In this article, we’ll cover the process of installing MySQL on your local Windows machine, from downloading to creating and using your first database. When you’re done, you’ll have a completely functional MySQL server running and ready to use locally.
Installation Process
Let’s get straight to the point. Installing MySQL on Windows is a very easy but long process. In this article, we’ll follow step-by-step how to do it using the MySQL installer, which is the recommended method by the database documentation.
First of all, you need to download the installer. Click here, choose the version compatible with your operating system (32-bit or 64-bit), and hit Download . Notice that you can also choose the web installer or offline installer. The last one is much heavier while the first will be faster to download.
When you try to start the download, the website will ask you to log in or create an account, but you don’t have to do so. Note the No thanks, just start my download button.
When you open the installer, it will first configure the installation and then ask for the user’s permission to proceed:
When this is over, we’ll finally see the installer interface. As you can see in the image below, the process consists of four steps:
- Choosing a setup type
- Downloading the files
- Installing the software
- Finishing the installation
There are five types of setups available in this first step and you can check the side box to see what each of them will install. However, we strongly recommend, especially if you’re just getting started with SQL, to select the default option.
The most important features, among others, this setup will install are:
- MySQL Server: the database server itself
- MySQL Workbench: an application to manage the server
- MySQL for Visual Studio: this feature enables the users to use MySQL from Visual Studio
- The documentation and tutorials
It’s also ok to choose the full setup as this will install all MySQL resources available.
After you choose the setup option, click Next .
Requirements
At this point, there’s a chance you’ll be asked to install some required software, the most common being the Visual Code. The installer can automatically solve some requirement issues, however, this is not the case here:
If you run into this, you can find one of the required versions of Visual Code here. This issue won’t stop from proceeding with the installation, though.
Download & Install
You have now reached the download section. The section name is self-explanatory: you’ll download all the components in the setup option you selected.
Click on Execute and the download will start. This might take a few minutes to be concluded.
When it’s done, you should see tick marks on every item. Then you can proceed.
The next screen you’ll see is almost the same as the last one, but now it will install all the components you’ve just downloaded. This step will take significantly longer than the previous one.
When it’s over, you’ll see all the ticks marks again:

Configuration
The next step is to configure the server. You’ll see the following screen. Hit Next .
First, the installer will ask you to configure the network:
It’s important to keep Development Computer in the Config Type field as you’re probably installing this on your personal computer and not on a dedicated machine. You can choose the port, but the default will work just fine. Click Next .
For the authentication method, let’s stick with the recommended option and click Next :
Now it’s time to create the root account. You’ll be asked to set a password. Remember to use a strong one.
On this same screen, you can create other users and set their passwords and permissions. You just have to click on Add User and fill in the blanks. Then, click Next .
Now you can choose the Windows service details, such as the service name, account type, and if you want to start MySQL when you turn on your computer. Again, the default options will work in most cases:
The next screen applies the configuration. Execute it. This step also takes a while to be concluded.
After it ends, just finish the process.

Final Steps
We’re almost there! The next step is to connect to the server. Type the root account’s password and click Check. You’ll see the Connection succeed status:
This screen is followed by another one asking to apply the configuration. Just execute it and click Finish .
We have finally reached the last screen.
Here, you can choose whether or not to start the Workbench and Shell, and check on the documentation or other examples.
Creating your first Database using MySQL Workbench
If you chose to start the Workbench after finishing the installation, you’ll see the following screen:
Choose the connection to the server you created and log into it.
This is your working space:
Notice in the SCHEMAS window that you already have a few sample databases to play with. In the Information window, you can see the database you have selected. Of course, you have the main window to write SQL code.
Use this window to run the following command to create your first database:
CREATE DATABASE my_first_database
Use the lightning icon to run the command and then click the Refresh button in the SCHEMAS window. The new database should be there.
Note that there’s a message in the Output window to show that the command was successfully executed.
You’ll now have a fully functional database. You can start to create tables, insert data, and build your own applications.
Summary
MySQL can be a very helpful tool not only for those who are learning about relational databases and SQL but also for creating real-world, production-level applications.
In this article, we covered the following topics.
- Download the MySQL Windows installer
- Install and configure MySQL server and tools
- Create your first database using MySQL Workbench
About the author
Otávio Simões Silveira
Otávio is an economist and data scientist from Brazil. In his free time, he writes about Python and Data Science on the internet. You can find him at LinkedIn.