System environment: Win10 64-bit MySQL version: mysql-5.7.18-winX64 The deployment steps are as described online: 1: Modify the environment variable path and increase the value D:\Program Files\MySQL\MySQL Server 5.7\bin 2: Copy the my.ini file from the old version of MySQL installation directory (the Internet says it is my-default.in. My my.ini file is renamed after copying this file. It should be OK). Paste it into the 5.7 installation directory D:\Program Files\MySQL\MySQL Server 5.7, and modify the following two sentences: basedir = D:/Program Files/MySQL/MySQL Server 5.7 datadir = D:/Program Files/MySQL/MySQL Server 5.7/data Create an empty data folder in the installation directory D:\Program Files\MySQL\MySQL Server 5.7; 3: The administrator (annoying win10 always requires this permission) runs cmd (find it in system32 of windows), enters: mysqld -install, and it shows that the installation is successful; then enter: net start mysql, and it prompts that the service startup failed. At this point: Go to the data folder and see 5 files. Open the file with the suffix .err, which prompts: Table 'mysql.plugin' doesn't exist The solution to this problem is: 1. Copy my.ini to the \bin folder; 2. Go to the \bin directory in cmd, and then enter mysqld --initialize --user=mysql --console to execute this command to generate the database. Note that there is a temporary password, so write it down; 3. Start the service net start mysql; 4. Enter the mysql command: mysql -uroot -p, enter the password just now; 5. Enter set password = password('root') to change the root login password; //Here root is the new password You may also be interested in:
|
<<: How to elegantly implement the mobile login and registration module in vue3
>>: Methods and steps for Etcd distributed deployment based on Docker
Get the local public IP address through the conta...
We often need to control the hidden, transparent ...
>>>>>Ubuntu installation and confi...
Why? The simplest way to put it is that pixels are...
Use javascript to implement a fixed sidebar, for ...
1. Radio grouping As long as the name is the same,...
Table of contents Preface How to encapsulate a To...
1. MySQL download address; http://ftp.ntu.edu.tw/...
An error message appears when MySQL is started in...
1. Download the mysql repo source $ wget http://r...
1. Four startup methods: 1.mysqld Start mysql ser...
Table of contents need Get data and submit Templa...
The default template method is similar to vue2, u...
In this article, we will need to learn how to vie...
Table of contents Preface Using websocket Constru...