Install and delete mysql by decompression, and decompress mysql

Source: Internet
Author: User

Install and delete mysql by decompression, and decompress mysql

1. Install mysql

(1) decompress the downloaded mysql compressed file to the directory where mysql needs to be installed.

 

(2) Open the decompressed folder, copy the default. ini file, and rename it my. ini. The configuration of this file is as follows:

 

(3) Add the mysql installation Path to the Path variable in the system environment variable configuration.

 

(4.exe open cmd.exe with the administrator ID, enter the binfile In the mysql installation directory, and start Installation

First, enter mysqld-install, then enter net start mysql to start the service, and then you can use mysql-u root-p to enter mysql. The first time you enter mysql, there is no password. Exit.

 

To change the password of mysql, you can use mysqladmin-u username-p old password New password

Grant all root permissions: grant all privileges on *. * to root @ "%" identified ".";

Flush privileges;

 

Ii. Completely Delete

(1) stop the service, and then find the software starting with mysql in the control panel to uninstall it, but I didn't find it. I chose to delete the installation file directly, prompting that my file is occupied.

(2) run the cmd window command to delete the mysql service SC delete mysql (mysql here refers to the mysql service name)

(3) Delete the Registry win + R and enter regedit and press enter to go to registry editing.

Find the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL directory to delete it.

HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL directory is deleted (this item is not found in my computer. The other two items are deleted and completely deleted)

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL directory Deletion

The "deleted" command is always prompted to be occupied, but it cannot be deleted,

Delete it forcibly. In the cmd window, enter the binfile In the mysql installation directory, enter the command mysqld.exe-remove, and then delete the file in the mysql installation directory, delete the installation file,

So far, MySQL has been completely deleted and another new version can be installed.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.