Home Database Mysql Tutorial Graphical tutorial on installing Mysql5.7.17 under win10 system

Graphical tutorial on installing Mysql5.7.17 under win10 system

Mar 22, 2017 pm 02:03 PM

Because I wanted to install Mysql on the company computer, I downloaded the latest version of Mysql-5.7.17 from the official website. In fact, the installation method is also very simple. Here is the editor Share the installation process to the Script Home platform for your reference

Operating system win10 MySQL is the 64-bit zip decompression Community version downloaded from the official website.

Because I wanted to install Mysql on the company computer, I downloaded the latest version of Mysql-5.7.17 from the official website. First, install it through the online tutorial, decompress it, and then create a new Mysql0104 directory on the C drive ( As the installation directory of Mysql), copy the contents of the decompressed Mysql-5.7.17 folder to the installation directory Mysql.

The content of the file is as follows:

Graphical tutorial on installing Mysql5.7.17 under win10 system

Then follow the online guide: run the command line window as an administrator, mysqld -install to install mysql; this step is not theoretically possible Any problem with normal installation. There will be feedback that the installation has been successful (I forgot to take a screenshot at this step)

In order to avoid subsequent unsuccessful installation, set up the configuration file first, right-click on the MyPC computer, select Properties, click to enter and select Advanced System settings Advanced system settings, click to enter and select Environment Variables, select System variables selected in the red box in the figure below, New adds a system variable MYSQL_HOME, the value is the installation path of mysql, on my computer the value is: C:\mysql0104 , then click Path (generally there will be PATH on the computer, if not, create it yourself), then copy and paste the string of values ​​​​;%MYSQL_HOME%\bin, and the environment variables will be configured, as shown in the figure below.

Graphical tutorial on installing Mysql5.7.17 under win10 system

Graphical tutorial on installing Mysql5.7.17 under win10 system

Graphical tutorial on installing Mysql5.7.17 under win10 system

# Next, you need to perform some installation and configuration of mysql. It's not the same as the old version. Because there is no data file under the mysql0104 folder, we need the system to generate it.

So run the command line window as administrator. Use the cd command to switch directories and make sure the directory is under the bin directory (an error may occur under the system directory, but I have not tried it). Enter the command in the bin directory:

mysqld --initialize

Also available online Say input command:

mysqld --initialize -insecure I have tried both methods, both of which generate a data folder with an empty password. (It is also said on the Internet that a string of passwords will be generated through mysql-console and the like, which need to be written down. It feels very complicated, so don’t bother with it. Just follow the instructions above)

I am also at this step There have been several errors. If an error occurs, just delete the data folder. Then run this line of code again.

But if there is a data folder, an error will definitely be reported when running the above initialization command.

Initialization is very important. After executing the initialization command, the following files will be newly generated in the empty data directory:

Graphical tutorial on installing Mysql5.7.17 under win10 system

Some people on the Internet said that they can be copied Put the data files in the old version of mysql into the installation directory, so that there is no need for system generation. However, I have seen many people saying that this method will cause many problems, so it is not recommended to use it. After all, different versions of

UpdateThere should be some differences in the contents of the data folder.

The next step is to start the mysql service, which is net start mysql. Theoretically, it should start successfully, but mine keeps reporting errors. And it was still an unexplained error. I struggled with this step for a long time, and later found out that in fact, this command does not care about the feedback at all, because as long as the database can operate normally, there will be no other problems.

Graphical tutorial on installing Mysql5.7.17 under win10 system

Don’t worry about it at all, let’s see if our mysql is actually installed successfully:

In the command Enter in the line:

mysql -uroot to enter the database (provided that the password has not been modified and is still empty)

Graphical tutorial on installing Mysql5.7.17 under win10 system

Look, the system feedback has actually been After successfully logging into the database, you can then operate through some commands, such as:

show databases; create test; use test; and a series of commands. Remember to add a semicolon to operate, and a semicolon at the end! !

Graphical tutorial on installing Mysql5.7.17 under win10 system

Then you can create tables in the database normally, query, insert, delete, etc., and the mysql environment will be installed.

The above is the detailed content of Graphical tutorial on installing Mysql5.7.17 under win10 system. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

System Restore prompts that you must enable system protection on this drive System Restore prompts that you must enable system protection on this drive Jun 19, 2024 pm 12:23 PM

The computer has a restore point, and when the system is restored, it prompts "You must enable system protection on this drive." This usually means that the system protection function is not turned on. System protection is a feature provided by the Windows operating system that can create system restore points to back up system files and settings. That way, if something goes wrong, you can revert to a previous state. When the system fails and you cannot enter the desktop to start it, you can only try the following method: Troubleshooting-Advanced Options-Command Prompt Command 1 netstartvssrstrui.exe/offline:C:\windows=active Command 2 cd%windir%\system32 \configrenSYSTEMsy

What should I do if win10 does not switch users? Win10 login interface does not have the option to switch users. Solution What should I do if win10 does not switch users? Win10 login interface does not have the option to switch users. Solution Jun 25, 2024 pm 05:21 PM

A problem that Windows 10 users may encounter is that they cannot find the switch user option on the login interface. So what should I do if there is no switch user option on the win10 login interface? Let this site give users a detailed explanation of the problem of not switching user options in the win10 login interface. Detailed solution to the problem of switching user options on the Win10 login interface: Check user account settings: First, make sure you have multiple user accounts on your computer and that these accounts are enabled. You can check and enable the account by following these steps: a. Press Win+I keys to open Settings and select "Accounts". b. Select "Family & Others" or &ld in the left navigation bar

How to permanently turn off real-time protection in win10? How to disable real-time protection function in win10 computer 0 How to permanently turn off real-time protection in win10? How to disable real-time protection function in win10 computer 0 Jun 05, 2024 pm 09:46 PM

Although the comprehensive anti-virus software that comes with Windows 10 system can continuously protect the security of your personal computer, sometimes it may also affect certain downloaded files. For some users, it may be more appropriate to temporarily turn off the real-time protection function. But many users don’t know how to permanently turn off the real-time protection feature on win10 system. 1. First, press the "Win+R" keys to open the run window, enter the "gpedit.msc" command to open the local Group Policy Editor interface; 2. Then, in the opened interface, click "Computer Configuration/Administrative Templates/ Windows Components/MicrosoftDef

How to restore the default wallpaper in win10? One trick to quickly restore the default wallpaper in Windows 10 system How to restore the default wallpaper in win10? One trick to quickly restore the default wallpaper in Windows 10 system Jun 02, 2024 pm 02:07 PM

In Windows 10 system, if you want to return to the system default wallpaper, you can follow the following steps: 1. Right-click a blank space on the desktop and select Personalize in the pop-up menu. 2. This will open the Personalization window in Settings. In the left menu, click Background. 3. Under the "Background" settings, find and click the drop-down menu next to "Choosepicture", and then select Windows Default (Windows Default) or directly select a picture that looks like the default wallpaper in the picture preview below ( if there are multiple options). 4. If your system has multiple versions

What should I do if Win10 takes a screenshot and crashes? How to solve the problem of Win10 flashing and then disappearing after taking a screenshot? What should I do if Win10 takes a screenshot and crashes? How to solve the problem of Win10 flashing and then disappearing after taking a screenshot? Jun 02, 2024 pm 12:48 PM

There are many reasons why the screenshot disappears after taking a screenshot in Win10. Users can first check the screenshot save location or adjust the screenshot settings, or check the animation effect to check it. If it really doesn't work, you can also choose to update the driver and operating system to perform the operation. Let this website carefully introduce to users the analysis of the problem of Win10 disappearing after taking a screenshot. Analysis of the problem after win10 takes a picture and it flashes and disappears 1. Check where the screenshot is saved: When you use the Win+PrtSc (PrintScreen) key combination to take a screenshot, the screenshot is usually saved in the C:\Users\YourUsername\Pictures\Screenshots folder. please

Windows cannot start the Windows Audio service Error 0x80070005 Windows cannot start the Windows Audio service Error 0x80070005 Jun 19, 2024 pm 01:08 PM

The guy's computer appears: Windows cannot start the WindowsAudio service (located on the local computer). Error 0x8007005: Access denied. This situation is usually caused by user permissions. You can try the following methods to fix it. Method 1: Modify the registry to add permissions through batch processing, create a new text document on the desktop, save it as .bat, and right-click the administrator to go far. Echo==========================EchoProcessingRegistryPermission.Pleasewait...Echo================== ========subinacl/subkey

What to do if the Win10 Task Manager crashes? How to fix the Win10 Task Manager crash? What to do if the Win10 Task Manager crashes? How to fix the Win10 Task Manager crash? Jun 25, 2024 pm 04:31 PM

Hello everyone, have you ever encountered the situation where the Windows 10 Task Manager keeps crashing? This function helps us a lot, allowing us to quickly see all running tasks, which is very convenient to use, right? However, some friends said that they encountered this problem and didn’t know how to solve it, so let me share with you the specific solution! Solution to Win10 Task Manager crash 1. First, press and hold the "Win" + "R" keys on the keyboard to open Run, enter "regedit" and press the Enter key. 2. Expand the folders and find "HKEY_CURRENT_USERSoftwareMicros

How to turn off popular searches in Windows 10 system? List of methods to close popular searches in Windows 10 system How to turn off popular searches in Windows 10 system? List of methods to close popular searches in Windows 10 system Jun 03, 2024 pm 08:46 PM

In win10 system, hot search is one of the more practical methods, but sometimes it can cause certain troubles. So how to turn off hot search? Let’s take a look below! Step 1: Open the Settings app First, click on the Windows icon in the lower left corner of the screen and select the Settings app. Step 2: Enter "Personalization" settings In the "Settings" app, click the "Personalization" option. Step 3: Select the “Search” option In the “Personalization” settings, select the “Search” option. Step 4: Turn off popular searches. In the "Search" option, find the option "Show popular searches in search" and turn it off. Professional Tool Recommendation 1. Xiaozhi Soso Xiaozhi Soso—Quick Search and One-Click Positioning—Professional Computer Search Tool

See all articles