Home > Database > Mysql Tutorial > mysql5.6.23winx64.zip installation details

mysql5.6.23winx64.zip installation details

黄舟
Release: 2017-03-27 13:58:33
Original
1705 people have browsed it

This article mainly introduces mysql 5.6.23 winx64.zip installation detailed tutorial , very good, with reference value. Friends who need it can refer to

For detailed documentation on installing the compressed package version of MySQL on windows, please refer to

1. Unzip mysql-5.6.23-winx64. zip to any directory

Extract to the root directory of drive d, D:\mysql-5.6.23-winx64

2. Set the environment variables MYSQL_HOME and PATH

SET MYSQL_HOME=D:\mysql-5.6.23-winx64
SET PATH=%PATH%;%MYSQL_HOME%\bin
Copy after login

Please set the system environment variables through My Computer-〉Properties-〉Advanced

3. Create the configuration filemy.ini, the file content is as follows , please adjust according to the actual situation

[mysqld]
loose-default-character-set = utf8 
basedir = D:/mysql-5.6.23-winx64
datadir = D:/mysql-5.6.23-winx64/data
port = 13306
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
character_set_server = utf8
[client]  
loose-default-character-set = utf8
Copy after login

4. Install the windows service, and the command to register the service is as follows

C:\> "D:\mysql-5.6.23-winx64\bin\mysqld" --install MySQL --defaults-file=C:\my-opts.cnf
Copy after login

If you use the default configuration file my.ini under MYSQL_HOME, you do not need to specify it. Execute the following command in cmd

C:\Users\tanw>"D:\mysql-5.6.23-winx64\bin\mysqld" --install MySQL56
Service successfully installed.
Copy after login

The service is successfully installed.

After that, we may use net start MySQL56 to start the service and net stop MySQL56 to stop the service.

5. The default account is root. If there is no password, you can set one

mysql -u root -P 13306
mysql>UPDATE mysql.user SET Password = password ( 'root' ) WHERE User = 'root' ;
mysql>FLUSH  PRIVILEGES;
mysql>exit
Copy after login

Log in with password

mysql -u root -p -P 13306
Enter Password: ****
mysql>
Copy after login

The above is the detailed content of mysql5.6.23winx64.zip installation details. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template