Install MySQL decompression version

Source: Internet
Author: User

Record: Win10 installation, the most important thing is to modify the registry, or error: A system error 2 occurred. The system cannot find the file specified

The decompression version does not specify the directory as installed, so you need to change the registry:

Hkey_local_machine-system-currentcontrolset-services-mysql (service name)-imagepath

Change to: "C:\Program files\mysql\bin\mysqld"--defaults-file= "C:\Program Files\mysql\my.ini" MySQL

As shown in the following:

1. Create My.ini

##################################################
[MySQL]
#设置客户端字符集
Default-character-set=utf8
[Mysqld]
port=3306
#设置字符集为utf8
Character_set_server=utf8
Basedir=g:\mysql-5.7.15-winx64
# Storage directory for databases
Datadir=g:\mysql-5.7.15-winx64\data
#最大连接数
max_connections=200
Sql_mode=no_engine_substitution,strict_trans_tables
#默认存储引擎
Default-storage-engine=innodb
##################################################

2. Execute under Bin (or add environment variable mysql_home and add%mysql_home% in path) to open cmd

Execution: Mysqld-install

After successful execution start MySQL

net start MySQL

Then execute mysql-uroot-p

Install MySQL decompression version

Related Article

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.