windows命令安装mysql

 admin   2022-04-15 15:22   162 人阅读  0 条评论

C:\Users\Administrator\Desktop\mysql-8.0.28-winx64\mysql-8.0.28-winx64\bin>mysqld --initialize --console
2022-04-15T07:17:15.065574Z 0 [System] [MY-013169] [Server] C:\Users\Administrator\Desktop\mysql-8.0.28-winx64\mysql-8.0.28-winx64\bin\mysqld.exe (mysqld 8.0.28) initializing of server in progress as process 3700
2022-04-15T07:17:15.115630Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-04-15T07:17:16.432828Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-04-15T07:17:20.931335Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Ne_1%yC0%bfT

C:\Users\Administrator\Desktop\mysql-8.0.28-winx64\mysql-8.0.28-winx64\bin>
C:\Users\Administrator\Desktop\mysql-8.0.28-winx64\mysql-8.0.28-winx64\bin>mysqld -install
Service successfully installed.

C:\Users\Administrator\Desktop\mysql-8.0.28-winx64\mysql-8.0.28-winx64\bin>net start mysql
MySQL 服务正在启动 ..
MySQL 服务已经启动成功。


C:\Users\Administrator\Desktop\mysql-8.0.28-winx64\mysql-8.0.28-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.28

Copyright (c) 2000, 2022, 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>
图片.png

本文地址:https://liuchunjie.top/?id=329
版权声明:本文为原创文章,版权归 admin 所有,欢迎分享本文,转载请保留出处!

 发表评论


表情

还没有留言,还不快点抢沙发?