window10 install mysql5.711 step on the pit

I haven’t installed mysql for a long time before I used 5.6. Today, when I installed mysql5.711 on window10, the following problems actually appeared

1. The server can’t start this problem. Every time I install it, the main problem is my.ini.

[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8 
[mysqld]
#设置3306端口
port = 3306
#跳过密码 不知道是我延迟还是根本没用 搞不明也不想弄了
 skip-grant-tables

# 设置mysql的安装目录
basedir=D:\window10Dir\mysql-5.7.11-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:\window10Dir\mysql-5.7.11-winx64\data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB

2. After the server is started, do not know what the password is, open the data directory

2018-12-29T15:51:18.447922Z 1 [Note] A temporary password is generated for root@localhost: AMKVps!(,8Tj
has such a sentence and the last one is the password, but I still use the login error... What kind of bird use is it?

Let's talk about the installation process. I have
mainly read two articles. In this article, I only read mysqld --initialize. A random password will be generated during installation
https://www.cnblogs.com/lzyoung/p/5347425.html
The following is how to skip the password verification. I made two pieces of password verification. I made two password verifications. I don’t know which verification is valid or the problem of windows10
https://www.jb51.net/article/98481.htm

Guess you like

Origin blog.csdn.net/qq_35189120/article/details/85346467