码迷,mamicode.com
首页 > 数据库 > 详细

Installing MySQL on Microsoft Windows Using a noinstall ZIP Archive

时间:2021-02-04 12:03:30      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:var   gen   sam   director   innodb   mic   generate   arc   sys   

Extracting the Install Archive

D:\mysql\mysql-5.7.32-winx64

Creating an Option File

D:\mysql\mysql-5.7.32-winx64\my.ini

[client]
default-character-set=utf8

[mysqld]
# set basedir to your installation path
basedir=D:/mysql
# set datadir to the location of your data directory
datadir=D:/mysql/mysql-5.7.32-winx64/data

port=3306

character-set-server=utf8mb4

default-storage-engine=INNODB

Customizing the PATH for MySQL Tools

MYSQL_HOME
D:\mysql\mysql-5.7.32-winx64

%MYSQL_HOME%\bin;

To make it easier to invoke MySQL programs, you can add the path name of the MySQL bin directory to your Windows system PATH environment variable.

You should not add the MySQL bin directory to your Windows PATH if you are running multiple MySQL servers on the same machine.

Initializing the Data Directory

mysqld --initialize --console

A temporary password is generated for root@localhost: _=da(%D0z?&q

Starting the Server for the First Time

mysqld --console

Post-Initialization root Password Assignment

mysql -u root -p
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘2020‘;

Installing MySQL on Microsoft Windows Using a noinstall ZIP Archive

标签:var   gen   sam   director   innodb   mic   generate   arc   sys   

原文地址:https://www.cnblogs.com/clipboard/p/14368656.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!