mysql8 window 免安装

CMD 必须是管理员权限

D:\Tube11\mysql-8.0.40-winx64\bin>mysqld remove mysql mysql8

The service doesn't exist!

D:\Tube11\mysql-8.0.40-winx64\bin>mysqld remove mysql8

Service successfully removed.

D:\Tube11\mysql-8.0.40-winx64\bin>mysqld --initialize --console

2024-11-02T03:44:43.999224Z 0 [System] [MY-013169] [Server] D:\Tube11\mysql-8.0.40-winx64\bin\mysqld.exe (mysqld 8.0.40) initializing of server in progress as process 52440

2024-11-02T03:44:44.017474Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

2024-11-02T03:44:44.316534Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

2024-11-02T03:44:45.344908Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 2qHn6a#W!e9h

D:\Tube11\mysql-8.0.40-winx64\bin>mysqld --install

Service successfully installed.

D:\Tube11\mysql-8.0.40-winx64\bin>net start mysql

MySQL 服务正在启动 .

MySQL 服务已经启动成功。

D:\Tube11\mysql-8.0.40-winx64\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.40

Copyright (c) 2000, 2024, 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> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

Query OK, 0 rows affected (0.01 sec)

mysql> use mysql

Database changed

mysql>

相关推荐
liux35287 小时前
MySQL执行计划与索引优化全面解析(三)
android·mysql·adb
上天_去_做颗惺星 EVE_BLUE8 小时前
Android设备与Mac/Docker全连接指南:有线到无线的完整方案
android·linux·macos·adb·docker·容器·安卓
-SOLO-1 天前
使用adb 录屏
adb
小旭95271 天前
软件测试核心知识整合(ADB 命令 + Monkey 测试 + 测试流程与工具)
测试工具·adb·压力测试
龚礼鹏1 天前
adb常用指令
adb
TRACER~851 天前
python+adb的零碎记录
开发语言·python·adb
廋到被风吹走1 天前
【数据库】【Mysql】MySQL 索引优化深度解析:从原理到实战
数据库·mysql·adb
乡野码圣2 天前
【RK3588 Android12】ADB调试环境配置
adb
_F_y2 天前
数据库基础
数据库·adb
fatiaozhang95272 天前
创维E900V22C/E900V22D_晶晨S905L3A(B)_带adb root_支持外置系统_主页设置正常_支持IPV6_完美线刷包
adb·创维e900v22c·创维e900v22d·晶晨s905l3ab