- Manually delete the data folder created by yourself
删除自行创建的data文件夹
- Then enter the bin directory under the administrator’s CMD and remove your mysqld service
mysqld -remove MySQL
Service successfully removed.
3. Execute mysqld — initialize execute in the bin directory of CMD
mysqld --initialize
the program will create the data folder and corresponding files in the dynamic MySQL folder
4. Execute in the bin directory, mysqld — install, and install the mysqld service
mysqld --install
- Run net start MySQL in the bin directory to start the MySQL service
net start mysql
Authentication plugin ‘caching_sha2_password’ reported error: Authentication requires secure connection.