Mysql automatically stops after starting, suggesting some. . . . .

Downloaded the latest version of MySql, and discovered many new features during the installation process

1. The data directory is missing

When configuring my-default.ini

(Need to configure # basedir = C:/Program Files/MySQL/MySQL Server 5.7.11

# datadir = C:/Program Files/MySQL/MySQL Server 5.7.11/data)

Careful students will find that the /data directory does not exist, but this data directory is not created manually by us. According to the official guide

C:/>bin/mysqld --initialize

C:/>bin/mysqld --initialize-insecure

Enter one of these two codes in cmd and it will be automatically generated in the corresponding directory

(The premise is that your path configuration is correct , such as the path of mysql, if it prompts that the net command is not an internal command , just add "C:/Windows/System32" to the path)


2. A random string is randomly generated as the password

Before starting, the root password is ABC123xyz

The randomly generated password can be viewed in the log file, which is the data file generated under the initialize command


Open Acer.err with Notepad



http://www.th7.cn/db/mysql/201602/176797.shtml

Guess you like

Origin blog.csdn.net/qi95719/article/details/64975314