And completely remove manually install MySQL MySQL

First, manually install mysql (5.6 version)

1. Download the archive, download the official website. MySQL official website link

I can also use the shared network drive link (5.6.17)

Link: https: //pan.baidu.com/s/1W4v5MafWiEze8S1IO0ishQ 
extraction code: xc2y 
copy the contents of this open Baidu network disk phone App, the operation more convenient oh

2. decompression inside the open profile my-default.ini

3. basedir and datadir file into its own file path, save and exit.

4. Open cmd (with administrator privileges), go to the MySQL installation directory bin file

5. Installation mysql: mysqld -install

6. Start the service: net start mysql

7. Log mysql: mysql -u root -p

8. The newly installed mysql is no password, you can directly enter into the

9. Modify mysql password

MySQL root password to modify the format: mysql> set password for the user name @localhost = password ( 'new password');

Examples: mysql> set password for root @ localhost = password ( 'root'); the above example the user changes the password for the root root;

 


Second, completely remove MySQL

        This method is suitable for MySQL file has been damaged beyond use mysql remove delete mysql, MySQL can work if it is not recommended using this method and delete mysql.

1. Stop the MySQL service
Start -> All Applications -> Windows Administrative Tools -> Services, stop the MySQL service.
2. MySQL MySQL installation directory under the file folder deletion (I install directory is C: \ Program Files (x86) \ MySQL)
3. Run "regedit" file, open the registry.
Delete HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL folder
to delete HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL folder.
Delete HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL folder.
If there is no appropriate folder, you do not delete.
4. Delete the C drive under "C: \ ProgramData \ MySQL" folder, if not delete it with a smash out to 360,
the programData file is hidden by default, set the display after the visible, or directly copy the C: \ ProgramData enter into the address bar to enter!
The entire MySQL folder deleted.
5. Start -> Applications -> Windows Administrative Tools -> Services
if MySQL has been uninstalled, but through the "Start -> Applications -> Windows Administrative Tools ->


sc delete mysql // mysql here is that you want to delete the name of the service  where you need administrator privileges

6. After the restart the system can reinstall mysql

Published 26 original articles · won praise 27 · views 6873

Guess you like

Origin blog.csdn.net/qq_40705355/article/details/88983395