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>

相关推荐
孙晓鹏life8 小时前
MySQL-Seconds_behind_master的精度误差
android·mysql·adb
ttwuai1 天前
GoFrame 连接 MySQL 报错排查:parseTime、时区和 utf8mb4 怎么配
数据库·mysql·adb
儒雅的大叔3 天前
MySQL数据库InnoDB数据恢复工具使用总结
数据库·mysql·adb
zhangjin11203 天前
解决adb -s 按Tab键不自动选择设备的问题
adb
逆向编程3 天前
MySQL 负载均衡完整入门实战教程
mysql·adb·负载均衡
红糖奶茶3 天前
MySQL 8.0的自增主键持久化特性
数据库·mysql·adb
我会尽全力 乐观而坚强5 天前
MySQL零基础入门(二)
数据库·mysql·adb
霸道流氓气质6 天前
Kiro 配置 MySQL MCP Server 通用教程
数据库·mysql·adb·mcp·kiro
运维大师6 天前
【安全与故障排查】03-【复盘】数据库被入侵:从发现到溯源全过程
数据库·安全·adb
Java小白笔记6 天前
MySQL中存储过程大表分批删除历史数据
android·mysql·adb