初始化mysql的数据库失败怎么办


当前第2页 返回上一页

总流程
总流程

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

C:\mysql-8.0.17-winx64\bin>mysqld --initialize --console

2019-08-24T13:37:11.590803Z 0 [System] [MY-013169] [Server] C:\mysql-8.0.17-winx64\bin\mysqld.exe (mysqld 8.0.17) initializing of server in progress as process 2484

2019-08-24T13:37:15.862830Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 37swG%65Qjf1

2019-08-24T13:37:17.783854Z 0 [System] [MY-013170] [Server] C:\mysql-8.0.17-winx64\bin\mysqld.exe (mysqld 8.0.17) initializing of server has completed

 

C:\mysql-8.0.17-winx64\bin>mysqld --install

The service already exists!

The current server installed: C:\mysql-8.0.17-winx64\bin\mysqld.exe MySQL

 

C:\mysql-8.0.17-winx64\bin>net start mysql

MySQL 服务正在启动 .

MySQL 服务已经启动成功。

 

 

C:\mysql-8.0.17-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.17

 

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

 

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 '111111';

Query OK, 0 rows affected (0.01 sec)

 

mysql>

以上就是初始化mysql的数据库失败怎么办的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

larval 如何捕获mysql错误

mysql中的explain中的using where和using index

linux下更改mysql数据文件默认路径

关于mysql max 与 where 间的执行问题小结

mysql实现自增步长调整

mysql快速入门之基本操作

如何修改mysql数据库表结构

mysql必知必会:创建高级联结

sql的join和where区别

mysql数据库多表操作

更多相关阅读请进入《mysql》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...