MySQL uninstall is not clean, the people are really big head

MySQL uninstall is not clean, the people are really big head

MySQL to reload the students, we may will receive an error when you start MySQL service

After viewing the properties found in the executable file is not appearing here this installation directory

That is probably because the last time did not unload a clean uninstall it


How to do it?

1 We start CMD into the MySQL bin directory (this installation directory), and then executemysqld remove

2 then performmysqld install

3 and then to initialize the MySQL ( see below )

Otherwise, the following error

4 Open a new CMD window, executenet start mysql

You're done, log on to the O



Note: For information I found shows that there are two ways to initialize MySQL

mysqld --initialize-insecure

After this command no output, then we can directly log in as root ( MySQL -u root )

after a successful login, you can start to do something, but it is recommended that you update your password ---- see below


mysqld --initialize --console

This command is executed, the output will be some content, which has an initial password for the root user
we need to log in as root (this password to MySQL -u root -p )


After login is successful, you will find that you can not do anything, because it wants you to update your password, the command is as follows:

alter user user () identified by 'new password';
the ALTER the User 'root' @ 'localhost' IDENTIFIED by 'new password';

Guess you like

Origin www.cnblogs.com/leerep/p/12342520.html