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>

相关推荐
小Ti客栈17 小时前
MySQL查询原理:从Server到InnoDB
android·mysql·adb
深念Y21 小时前
老Flyme 官方 root 开启 ADB TCP 方案
linux·数据库·网络协议·tcp/ip·adb·智能手机·emmc
00后程序员张2 天前
抓包鹰 电脑本机网络连接表怎么看?哪些程序在联网 进程归属与可疑 IP 追溯
网络协议·计算机网络·网络安全·ios·adb·https·udp
OceanWaves19932 天前
mysql 5.7.29 主从同步配置
数据库·mysql·adb
九皇叔叔2 天前
RHEL9 安装 MySQL 8.4.11.LTS 版本
android·mysql·adb
灵析表格2 天前
Excel连接MySQL的函数化革命:灵析表格MySQL函数族业务应用分析
数据库·mysql·adb·excel·wps·灵析表格·excel公式盒子
王琦03182 天前
mysql基础
android·mysql·adb
2501_915918413 天前
iOS 怎么抓包?抓包鹰系统级 网卡 应用层三种方式对比,不越狱抓 iPhone 流量
网络协议·计算机网络·网络安全·ios·adb·https·udp
2501_915921433 天前
抓包鹰抓取系统 App 的流量,从底层读明文
网络协议·计算机网络·网络安全·adb·https·udp
孫治AllenSun3 天前
【Nacos】集群搭建过程
adb