初始化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的数据库失败怎么办的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

centos7安装mysql的教程(详细)

mysql如何登陆%_mysql

mysql8.0修改密码的正确姿势分享

对于mysql在保存时间信息上的建议

mysql存储过程是什么意思?

mysql慢查询有影响吗

mysql 支持 emoji 图标存储

mysql中什么是非聚簇索引?

navicat 8 for mysql怎么建库

root密码忘记该怎么办

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


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

数据库系统概念 第6版

机械工业出版社

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



打赏

取消

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

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

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

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

评论

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