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>

相关推荐
Java追光着7 小时前
ADB 无线调试 APP 完全攻略(2025 最新版)—— 从连接到查看日志,一文搞定!
adb
努力学习的小廉13 小时前
初识MYSQL —— 事务
android·mysql·adb
~我爱敲代码~20 小时前
使用XSHELL远程操作数据库
数据库·adb
robin59111 天前
Linux-通过端口转发访问数据库
linux·数据库·adb
-指短琴长-2 天前
MySQL快速入门——基本查询(下)
android·mysql·adb
林北北的霸霸2 天前
django初识与安装
android·mysql·adb
Java 码农2 天前
MySQL EXPLAIN 详解与优化指南
android·mysql·adb
Hello.Reader2 天前
Flink CDC 从 Definition 到可落地 YAML
大数据·adb·flink
颜大哦3 天前
linux安装mysql
linux·运维·mysql·adb
xrkhy3 天前
canal1.1.8+mysql8.0+jdk17+redis的使用
android·redis·adb