win764安装mysql8_win7安装mysql8.0.13winx64

这里展示一下,由于需要安装一个版本测试一下数据,其实就是超简单的啦。

下包

注:https://dev.mysql.com/downloads/mysql/

e784a5583c1eb1ca184706189b966d99.png

解压与配置

1bb397800421c023b5488ff04119de6e.png

[mysqld]

basedir=C:\Users\hp\Downloads\mysql-8.0.13-winx64

datadir=C:\Users\hp\Downloads\mysql-8.0.13-winx64\data

port=3306

初始化、安装、与启动

86636e9d65cf2ed850c90783f9e4bf7e.png

C:UsershpDownloadsmysql-8.0.13-winx64in>mysqld.exe --initialize

C:UsershpDownloadsmysql-8.0.13-winx64in>mysqld.exe -install

Service successfully installed.

C:UsershpDownloadsmysql-8.0.13-winx64in>net start mysql

MySQL 服务正在启动 ...

MySQL 服务已经启动成功。

修改初始密码

注:在data目录下.err后缀名的就是日志, 日志里面记录了初始化的信息

11e38be8a2497d415565eebd50742b7e.png

登录与修改密码

2235f87f19e9d4c48b721e88b04cb67b.png

C:UsershpDownloadsmysql-8.0.13-winx64in>mysql -u root -p3Xp_sz/(u:gl

mysql: [Warning] Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor. Commands end with ; or g.

Your MySQL connection id is 11

Server version: 8.0.13

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'lizhenghua';

Query OK, 0 rows affected (0.15 sec)

mysql> exit

Bye

C:UsershpDownloadsmysql-8.0.13-winx64in>

C:UsershpDownloadsmysql-8.0.13-winx64in>mysql -u root -plizhenghua

mysql: [Warning] Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor. Commands end with ; or g.

Your MySQL connection id is 12

Server version: 8.0.13 MySQL Community Server - GPL

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

mysql> show databases;

+--------------------+

| Database |

+--------------------+

| information_schema |

| mysql |

| performance_schema |

| sys |

+--------------------+

4 rows in set (0.06 sec)

mysql> exit

Bye

重启服务

b6a443979bc333bc6a57f9f9d37b5d40.png

C:UsershpDownloadsmysql-8.0.13-winx64in>net stop mysql

MySQL 服务正在停止.

MySQL 服务已成功停止。

C:UsershpDownloadsmysql-8.0.13-winx64in>net start mysql

MySQL 服务正在启动 ..

MySQL 服务已经启动成功。

查看进程与端口

42b69264eb0157e964cfa04f7b98308d.png

C:Usershp>netstat -ano | findStr 3306

TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 14144

TCP 0.0.0.0:33060 0.0.0.0:0 LISTENING 14144

TCP [::]:3306 [::]:0 LISTENING 14144

TCP [::]:33060 [::]:0 LISTENING 14144

C:Usershp>wmic process get name | findStr mysql

mysqld.exe

mysqld.exe

C:Usershp>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值