MySQL安装及密码修改,mysql的存储引擎面试题

本文档详细介绍了在Windows10系统上安装MySQL8.0的步骤,包括切换到安装目录、初始化MySQL、启动服务以及修改初始密码的过程。在安装过程中提到了可能遇到的警告,如TLS版本问题,并提供了相关参考资料链接。此外,还分享了作者学习MySQL的初衷——了解SQL注入,并鼓励读者分享和交流解决问题的经验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

序言:

MySQL是世界上最受欢迎的数据库管理系统之一。无论是在小型开发项目上还是在大型网站上面,它都是稳定的、可靠、快速、可信的,可以足够胜任任何数据存储需求。

PS:嘿嘿,其实本人学习MySQL主要原因是想要学习SQL注入,但是在学习的过程中也遇见了一些问题,把问题及问题的解决方案分享出来希望能够帮助到那些遇到相同问题的人,若有不足,请各位大佬多多斧正。

参考资料:

Mysql - flush privileges 命令:

https://blog.youkuaiyun.com/zhangzheng0413/article/details/7243265

正文:


操作系统:Microsoft Windows 10 21H1

MySQL版本:MySQL Community Server 8.0.26

Java环境:

Java™ SE Runtime Environment (build 15.0.1+9-18)

Java HotSpot™ 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)

安装过程:

Java环境搭建:

看一看龙龙之前写过的吧,不过多赘述了呦~~(主要是比较懒,嘿嘿):

https://blog.youkuaiyun.com/weixin_46056304/article/details/108987409?spm=1001.2014.3001.5502

MySQL下载:


网址:

https://dev.mysql.com/downloads/mysql/在这里插入图片描述

一、安装:

C:\Windows\system32>d: #切换到D盘

D:>cd MySQL\SQL\bin #切换到MySQL文件夹

D:\MySQL\SQL\bin>mysqld --initialize --console #初始化MySQL

2021-07-26T11:51:37.672431Z 0 [System] [MY-013169] [Server] D:\MySQL\SQL\bin\mysqld.exe (mysqld 8.0.26) initializing of server in progress as process 6024

2021-07-26T11:51:37.679627Z 0 [Warning] [MY-013242] [Server] --character-set-server: ‘utf8’ is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.

2021-07-26T11:51:37.695772Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

2021-07-26T11:51:38.187110Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

2021-07-26T11:51:39.493894Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main

2021-07-26T11:51:39.494483Z 0 [Warning] [MY-013746] [Server] A deprec

《一线大厂Java面试题解析+后端开发学习笔记+最新架构讲解视频+实战项目源码讲义》

【docs.qq.com/doc/DSmxTbFJ1cmN1R2dB】 完整内容开源分享

ated TLS version TLSv1.1 is enabled for channel mysql_main

2021-07-26T11:51:39.594086Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: havj1rP#5Xct #初始密码

D:\MySQL\SQL\bin>mysqld install #安装MySQL

The service already exists!

The current server installed: D:\MySQL\SQL\bin\mysqld MySQL

D:\MySQL\SQL\bin>net start mysql #启动服务

MySQL 服务正在启动 .

MySQL 服务已经启动成功。

D:\MySQL\SQL\bin>mysql -u root -p #登录

Enter password: ************

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

Your MySQL connection id is 8

Server version: 8.0.26

Copyright © 2000, 2021, Oracle and/or its affiliates.

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>

二.修改密码:

C:\Users\ASUS\Desktop>mysql -u root -p #使用初始密码登录

Enter password: *********

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

Your MySQL connection id is 16

Server version: 8.0.26 MySQL Community Server - GPL

Copyright © 2000, 2021, Oracle and/or its affiliates.

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> use mysql;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值