MySQL Learning Note (ii)

Source: Internet
Author: User

Installation configuration and uninstallation of MySQL:

Installation:
(1) Put the green version of MySQL free install package on the D drive, the command line into the MySQL green version of the bin directory after decompression:
CD D:\mysql-5.6.35-win32\bin

--Green version available here:

Link: Http://pan.baidu.com/s/1jISkrPG Password: a6gy

(2) Installing the MySQL service
Mysqld install, the MySQL installation succeeds after running the command.

(3) Start the MySQL service.
net start MySQL will start the MySQL service. It is worth noting that MySQL is installed with the command under the default service name MySQL under Windows system, the default password is empty.

(4) Configuring environment variables
1) Create a new mysql_home system variable with the configuration value: D:\mysql-5.6.35-win32

(You can see if the setting is successful with the SET command)

2) Edit the path system variable and add%mysql_home%\bin to the PATH variable. Configure the PATH environment variable, or do not create a new mysql_home variable, but directly configure the bin under the MySQL installation directory under the PATH variable,
Path:%mysql_home%\bin

(5) Enter MySQL
Mysql-u root-p, the password defaults to empty. displaying "mysql>" means entering MySQL and can perform various operations on the database with T-SQL statements. Database can also be managed with graphical management tools


Unloading:

Completely uninstall MySQL (stop service, uninstall related programs, delete registry
1. Stop service MySQL

2. Uninstall MySQL-related programs

3. Delete the registry (run->regedit),machine->system->controlset001/controlset002/currentcontrolset->services-> Eventlog->applications->mysql related files

4. Delete the MySQL installation directory and the directory where the database data is saved (C:\Documents and Settings\All Users.windows\application data or C:/documentsand Settings/all Users/application Data), note that these directories may be hidden and need to set folder options to show hidden directories

5. Restart the computer, uninstall complete

Completely uninstall MySQL (stop service, uninstall related programs, delete the registry can be consulted: completely uninstall MySQL

MySQL Learning Note (ii)

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.