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>

相关推荐
firstacui1 天前
Mysql调优
android·mysql·adb
醉颜凉2 天前
MySQL 8 忘记 root 密码?这两种方法帮你轻松解决
数据库·mysql·adb
2601_962063232 天前
【Spring Boot】掌握 Spring 事务:隔离级别与传播机制解读与应用
spring boot·spring·adb
小成很成4 天前
mysql 8.0.21 升级 mysql 8.0.45(经过生产环境验证)
android·mysql·adb
2501_916007474 天前
免费抓包工具 Windows 和 Mac 怎么选?根据平台来选择工具
网络协议·计算机网络·网络安全·ios·adb·https·udp
2501_916008895 天前
iOS App 请求地址查看,不用配置看到 App 调了哪些接口
网络协议·计算机网络·网络安全·ios·adb·https·udp
码云数智-园园6 天前
PHP 性能优化实战:从 3s 到 300ms,我是怎么优化一个接口的?
android·adb
2501_915918416 天前
Rust 程序抓包解密,rustls 不认系统证书的几种办法
开发语言·后端·网络协议·ios·adb·https·rust
Free飝Fly6 天前
Android13及更新版本开启user版本adb root remount
adb
阮胜昌7 天前
MySQL 中的动态数据脱敏:无需更改应用程序即可保护敏感数据
android·mysql·adb