WIN10 Installing mysql5.7.20 Decompression version

Source: Internet
Author: User

Original: https://www.cnblogs.com/qjoanven/p/7898006.html

MySQL installation package can be downloaded to the official website, address: https://dev.mysql.com/downloads/mysql

1, first unpack the package, I extracted to the E:\install_work\mysql directory:

2, found that the MySQL root directory does not have the data directory and the My.ini file, it does not matter, when initializing the MySQL system will automatically create a data directory, we just need to create a My.ini file. Create a new Notepad and copy the following code into Notepad:
[MySQL]# set MySQL client default character set Default-character-set=UTF8[mysqld]#设置3306端口 Port= 3306# Set up the MySQL installation directory Basedir=d:\mysql# Set the data storage directory for the MySQL database DataDir=D:\mysql\data # allows maximum number of connections Max_connections=200# The default character set used by the server is a 8-bit encoded latin1 character Set Character-set-server=UTF8 # The default storage engine that will be used when creating a new table Default-storage-engine=INNODB Explicit_defaults_for_timestamp=Truesql_mode=only_full_group_by,no_auto_value_on_zero,strict_trans_tables,no_zero_in_date,no_zero_date,error_for_division_ By_zero,no_auto_create_user,no_engine_substitution,pipes_as_concat,ansi_quotes

3. Initialize MySQL, search cmd find the command prompt, right- run as Administrator , enter the bin directory, enter the following command:

Mysqld--initialize--user=mysql--console Initialization succeeds, the system creates the data directory under the MySQL directory and generates the initial password. To prevent loss, we will first save the password to the text. 4. Enter the following command to install MYSQL:MYSQLD--install MySQL display service successfully installed. Indicates that the installation was successful.

5. Enter the following command to launch mysql:net start MySQL If startup fails, you can find MySQL right click in the computer service to manually start MySQL service 6, enter the following command to login Mysql:mysql-u root-p, enter the initial password, copy the initial password, Right-click to paste. 7, modify the MySQL login password, enter the following command (note to enter a semicolon) set Password=password (' New password '), 8, in order to facilitate subsequent operations, we need to configure the environment variables MySQL. Select path to add our Bin directory to the environment variable.

(1) Create a new system variable Mysql_home (MYSQL root directory), and configure the variable value to E:\install_work\mysql;

(2) Edit the system variable path, add the;%mysql_home%\bin to the PATH variable value.

Once configured, you can log in to MySQL with your new password next time. Problems that you may encounter

1, input mysqld--initialize--user=mysql--console appears:

Unable to continue executing code because the system cannot find MSVCR120.dll. Reinstalling the program may resolve this issue

Unable to continue executing code because the system cannot find MSVCP120.dll. Reinstalling the program may resolve this issue

Solution :

Download the DirectX Repair Tool enhanced version, reference address: http://blog.csdn.net/vbcom/article/details/7245186

WIN10 Installing mysql5.7.20 Decompression version

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.