How to install MySQL on Windows 10?

How to install MySQL on Windows 10?

MySQL, the most popular Open Source SQL database management system, is developed, distributed, and supported by Oracle Corporation. MySQL is a database management system. MySQL databases are relational. MySQL software is Open Source. The MySQL Database Server is very fast, reliable, scalable, and easy to use. MySQL Server works in client/server or embedded systems. A large amount of contributed MySQL software is available. – by dev.mysql.com

MySQL is a very famous and popular open source relational database management system. Installing MySQL on Windows 10 is very easy and straight forward. This blog will help you the step by step procedure to install the MySQL on Windows 10.

download

We can download the MySQL latest version installer from the MySQL official site. The download page has been given below.

https://dev.mysql.com/downloads/installer/

Scroll down to the page, select the operating system “Microsoft Windows” and download the “mysql-installer-web-community-8.0.17.0.msi” installer by skipping the MySQL login.

MySQL Installer download page

After downloaded the installer, right click it and click “Install”.

Install MySQL

MySQL Installation will starts now.

MySQL Installer starts

Accept the License Agreement and click “Next”.

License Agreement

Choose the Setup Type “Full” and Click “Next”.

Setup Type

Click “Next” on Check Requirements window.

System Requirements

Click “Yes” if any confirmation screen prompted by the installer. (If the Python 3.7 is not installed).

Click “Execute” button on the Installation window.

Installation

All MySQL Products will start download and install automatically. After complete all the products then, click “Next” to continue.

Complete status

high availability

On the High Availability window, choose “Standalone MySQL Server/ Classic MySQL Replication” and click “Next” to continue.

High Availability

type and networking

On the Type and Networking window, Select your Server Config Type based on your choice.

Config Type

I have selected the Server Config Type is “Development Computer” and the default port number is 3306. If you want to run the MySQL on different port number than change it. Otherwise leave it as 3306 and click “Next” to continue.

Type and Networking

authentication method

On the Authentication method window, select the option “Use Strong Password Encryption for Authentication (RECOMMENDED)” to access the MySQL safely. Then click “Next” on the window to continue.

Authentication Method

account and roles

On the Account and Roles window, provide the password for “root” user and click “Check” button to validate the password and then click “Next” button to continue.

Account and Roles

windows service

On the windows service screen, Check the option “Configure MySQL Server as a Windows Service”, then provide the Windows the Service Name “MYSQL80”, then check the option “Start the MySQL Server at System Startup”, then check the option “Standard System Account” to run Windows Service as and then click “Next” button to continue.

Windows Service

apply configuration

Click “Execute” button to apply the MySQL configuration.

Apply Configuration

After applied the configuration for MySQL and then click “Finish” button to continue.

Apply Configuration – Finish

product configuration (Optional)

On the Product Configuration window, click “Next” button to configure the MySQL Router, Sample and Examples.

Product Configuration

Click “Finish” button to continue with default options on the MySQL Router configuration window.

MySQL Router Configuration

Click “Next” on the Product Configuration window to configure the Samples and Examples.

Samples and Examples

Provide the root password to check the connection and then click “Next” button to continue.

Connect to Server

Click “Execute” button to apply the configuration and run the sample and examples SQL scripts.

Apply Configuration

Click “Finish” on the Apply Configuration window, click “Next” on the Product Configuration and click “Finish” on the Installation complete window.

Installation complete

mysql workbench

MySQL Workbench will open automatically after clicked the “Finish” button.

MySQL Workbench

Click “Local Instance MySQL 55” and provide the password and click “OK” to connect the server.

Connect MySQL server

Execute the “show databases” command on the SQL editor to view the list of databases.

show databases

MySQL 8.0 has been installed successfully on windows 10.

Advertisements

How to install MySQL on Linux Debian 9?

How to install MySQL on Linux Debian 9?

MySQL, the most popular Open Source SQL database management system, is developed, distributed, and supported by Oracle Corporation. MySQL is a database management system. MySQL databases are relational. MySQL software is Open Source. The MySQL Database Server is very fast, reliable, scalable, and easy to use. MySQL Server works in client/server or embedded systems. A large amount of contributed MySQL software is available. – by dev.mysql.com

MySQL is a very famous and popular open source relational database management system. Installing MySQL on Linux Debian 9 is very easy and straight forward. This blog will help you the step by step procedure to install the MySQL on Linux Debian 9.

change directory

Execute the below command to change the directory to “/tmp”.

cd /tmp

download MySQL PPA

The MySQL PPA for Debian Linux is available on the MySQL official site. Execute the below commands to download the MySQL PPA.

sudo wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
sudo dpkg -i mysql-apt-config* 

During the installation of MySQL apt config package will prompt you to select the MySQL version to install. Select the MySQL 5.8 or 5.7 option to install on your system.

MySQL server & cluster
MySQL version

Select “OK” on package confirmation screen.

OK screen

Install MySQL

Update the existing packages once again and start to install the MySQL by executing the below commands.

sudo apt update 
sudo apt install mysql-server

Enter the root password to login into the MySQL as a root user.

Enter root password

Re-enter root password once again.

Re-enter root password

Select “Strong Password Encryption” on the screen for safe.

Strong Password Encryption

check the system control status

By executing the below command to check the MySQL running status on system control.

sudo systemctl status mysql
MySQL system control status

secure mysql

By executing the below command to secure your MySQL.

mysql_secure_installation

You should answer the questions prompted on the screen to secure your MySQL installation.

Would you like to setup VALIDATE PASSWORD component?
 Press y|Y for Yes, any other key for No: n
 Using existing password for root.
 Change the password for root ? ((Press y|Y for Yes, any other key for No) : n
 … skipping.
 By default, a MySQL installation has an anonymous user,
 allowing anyone to log into MySQL without having to have
 a user account created for them. This is intended only for
 testing, and to make the installation go a bit smoother.
 You should remove them before moving into a production
 environment.
 Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
 Success.
 Normally, root should only be allowed to connect from
 'localhost'. This ensures that someone cannot guess at
 the root password from the network.
 Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
 Success.
 By default, MySQL comes with a database named 'test' that
 anyone can access. This is also intended only for testing,
 and should be removed before moving into a production
 environment.
 Remove test database and access to it? (Press y|Y for Yes, any other key for No) : n
 … skipping.
 Reloading the privilege tables will ensure that all changes
 made so far will take effect immediately.
 Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
 Success.
 All done! 

test mysql

Execute below command to test the MySQL and check the version.

mysqladmin -u root -p version
MySQL version

MySQL has been successfully installed on Linux Debian 9.