mysql8.0 for windows 安装

网友投稿 1184 2022-09-17

mysql8.0 for windows 安装

mysql8.0 for windows 安装

Microsoft Windows [版本 6.1.7601]D:\mysql-8.0.20-winx64\bin>mysqld.exe --initialize --consoleD:\mysql-8.0.20-winx64\bin>mysqld --initialize --consoleD:\mysql-8.0.20-winx64\bin>mysqld.exe --initialize --console2021-11-06T01:24:53.548434Z 0 [System] [MY-013169] [Server] D:\mysql-8.0.20-winx64\bin\mysqld.exe (mysqld 8.0.20) initializing of server in progress as process 103562021-11-06T01:24:53.714443Z 1 [System] [MY-013576] [InnoDB] InnoDB ishnitialization has started.2021-11-06T01:24:56.692613Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.2021-11-06T01:25:00.480830Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 2pjN+*T*E(CkD:\mysql-8.0.20-winx64\bin>其中 2pjN+*T*E(Ck 为默认密码

然后以管理员身份运行

Microsoft Windows [版本 6.1.7601]C:\Windows\system32>d:D:\>cd mysql-8.0.20-winx64D:\mysql-8.0.20-winx64>cd binD:\mysql-8.0.20-winx64\bin>mysqld.exe --install MYSQL8.0Service successfully installed.D:\mysql-8.0.20-winx64\bin>net start mysql8.0MYSQL8.0 服务正在启动 ..MYSQL8.0 服务已经启动成功。D:\mysql-8.0.20-winx64\bin>mysql -u root -pEnter password: ************Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 9Server version: 8.0.20Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.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 'root';Query OK, 0 rows affected (0.01 sec)mysql> fulsh privileges;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual thatcorresponds to your MySQL server version for the right syntax to use near 'fulsh privileges' at line 1mysql> flush privileges;Query OK, 0 rows affected (0.01 sec)mysql>

至此 可以使用 连接工具连接

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:PowerShell Get-Date 获取年月日时分秒#yyds干货盘点#
下一篇:.NET 合并程序集(将 dll 合并到 exe 中)(.net core和.net framework的区别)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~