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>

相关推荐
@Ryan Ding1 小时前
MySQL主从复制与读写分离概述
android·mysql·adb
feifeigo1238 小时前
升级到MySQL 8.4,MySQL启动报错:io_setup() failed with EAGAIN
数据库·mysql·adb
Edingbrugh.南空18 小时前
Flink MySQL CDC 环境配置与验证
mysql·adb·flink
陈卓41021 小时前
MySQL-主从复制&分库分表
android·mysql·adb
ladymorgana1 天前
【docker】修改 MySQL 密码后 Navicat 仍能用原密码连接
mysql·adb·docker
好奇的菜鸟3 天前
如何在Ubuntu上检查MySQL是否启动并放开3306端口
mysql·ubuntu·adb
OneT1me3 天前
adb shell中执行system用户权限命令的方法
adb
Polaris_YJH3 天前
360安全卫士占用5037端口(ADB端口)解决方案
adb·端口占用·5037
雨之小13 天前
RK3588调试之旅:adbd服务配置全攻略
adb·rk3588
Chrison_mu13 天前
python运行android adb命令获取版本号
android·python·adb