mysql-8.0.13-winx64.zip版windows安装

版本:Mysql 8.0.13

1.解压

2.把mysql的路径加入系统path

3.在mysql目录下,新建文件my.ini,设置basedir,datadir,port,比如:

[mysqld]

port=3306

basedir="F:\program\mysql-5.7.19-winx64"

datadir="F:\program\mysql-5.7.19-winx64\data"

max_connections=1000

character-set-server=utf8

default-storage-engine=INNODB

lower_case_table_names = 1

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

#skip-grant-tables

[client]

port=3306

default-character-set=utf8

[mysql]

default-character-set=utf8

4.进入bin目录,用管理员身份执行cmd.exe,在命令行执行:mysqld --initialize --console

mysql-8.0.13-winx64.zip版windows安装_第1张图片
初始化

5.安装mysql,在命令行执行:mysqld install

安装

6.启动mysql,在命令行执行:net start mysql

启动

7.登录mysql,在命令行执行:mysql -u root -p

mysql-8.0.13-winx64.zip版windows安装_第2张图片
登录

8.修改密码,在命令行执行:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';    #注意末尾要有;

修改密码

9.停止mysql,在命令行执行:net stop mysql

10.卸载mysql,在命令行执行:mysqld remove

你可能感兴趣的:(mysql-8.0.13-winx64.zip版windows安装)